Home All Groups Group Topic Archive Search About

Cursor Speed 2000 vs 2005

Author
1 Dec 2006 2:21 AM
Chuck Reif
I ran two different tests on instances of SQL Server 2000 and SQL Server
2005 running on the same machine.  The first involved a simple tight loop
(while statement) of 50,000 interations in a procedure with no processing.
The second involved an insensitive cursor on a table of 50,000 rows again
with no processing in the loop.

The straight loop was about 25% faster in SQL Server 2005, but the cursor
loop took almost twice as long in 2005 as in 2000.  Has anyone experienced
anything similar to this?

Thanks in advance.

AddThis Social Bookmark Button