Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 cursor madness

Author  Topic 

DBASlut
Yak Posting Veteran

71 Posts

Posted - 2005-09-09 : 18:22:11
here's the scenario..
cursor 1 using select from table1

while @@fetch = 0
begin
update table1

fetch next

when this is run, it appears the same record from the cursor is being called..


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-09-09 : 18:22:59
What is your question? Post the actual code in order for us to help.

Tara
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-09-10 : 00:48:05
Instead of using Cursor, Use normal Update query which is more efficient than using Cursor
Post table structure and your exact need

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -