Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor for Update in Stored Procedure
Message
De
18/04/2003 09:02:36
 
 
À
15/04/2003 14:11:02
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00777828
Message ID:
00779133
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform