Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor for Update in Stored Procedure
Message
From
18/04/2003 09:02:36
 
 
To
15/04/2003 14:11:02
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00777828
Message ID:
00779133
Views:
13
This message has been marked as the solution to the initial question of the thread.
Two things:

1. I implemented a unique primary key for the table and the error I was receiving on the Declare Cursor went away. You can't use FOR UPDATE without a unique primary key.

2. I implemented the code using a READ-ONLY cursor and doing my table updates directly to the table with a WHERE clause specifying the key value (since I already had it anyway). Seems to work pretty well.
Previous
Reply
Map
View

Click here to load this message in the networking platform