Viewing 15 posts - 13,936 through 13,950 (of 18,923 total)
Alright, you could use the current identity then... Of course if you have big gaps, you'll have a few updates where next to now rows will be updated. Also...
August 24, 2005 at 2:57 pm
NP... Don't wanna get into that when he doesn't know how to select
.
August 24, 2005 at 2:47 pm
Make sure you catch what are the values of the parameters. This is usually a recreatable situation.
5K ![]()
![]()
August 24, 2005 at 2:44 pm
For the force index part >>
Select id from dbo.SysObjects
Select id from dbo.SysObjects with (index (ncSysObjects))
you can also use the indid of the index instead of its name... but the name...
August 24, 2005 at 2:42 pm
I don't have time to scan all this ATM. Fast pointer >> everytime you see a scan (table, clustered index or index scan). That can be the reason...
August 24, 2005 at 2:40 pm
It would take time to do the add column, but it would speed up the loop process greatly >>
Add a new identity(1,1) column, INDEX IT
then something like this :
Declare...
August 24, 2005 at 2:37 pm
Remember this if it happens again.
August 24, 2005 at 2:28 pm
Add it in the suggestion section of the site.
August 24, 2005 at 2:18 pm
It adds a little overhead, but you get very little more locking on the tables, so your current tasks wouldn't be affected. So in essence that thing could run...
August 24, 2005 at 2:13 pm
Well if you need to run batches here's how I would do it ::
Fetch next valid id
Insert into Table (Select columns, @validId + Count(*) from table self join on id...
August 24, 2005 at 2:11 pm
That's where you're getting the problem >>
SET SHOWPLAN_TEXT ON
GO
CREATE TABLE #test (a int not null)
select * from #test
drop table #test
GO
SET SHOWPLAN_TEXT OFF
this option seems to only fetch the plan without...
August 24, 2005 at 2:05 pm
I wouldn't go with that route first. I'd first make sure that the plan is bad first and I doubt it's the case here.
August 24, 2005 at 2:03 pm
Can you copy the code of the proc in QA and execute it directly...
If you get the same error I'm afraid you'll have to use a table variable instead of...
August 24, 2005 at 1:58 pm
Viewing 15 posts - 13,936 through 13,950 (of 18,923 total)