Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging a WHILE EXISTS
Message
 
 
À
02/11/2008 15:09:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01358902
Message ID:
01359021
Vues:
32
>>I think you would need to select them into the cursor then. See DECLARE CURSOR topic in BOL.
>
>Thanks, this has helped me fine tuned the code.

You're welcome. Are you sure you need to loop and can not do this in one shot as Sergey showed? Using cursors in SQL Server is slow. Of course, if this is one time deal or small set of records, it doesn't matter.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform