Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional Parameters
Message
De
24/02/2002 23:47:42
 
 
À
24/02/2002 13:53:13
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00624260
Message ID:
00624382
Vues:
14
>I'm trying to avoid an Update SP that updates *every* column and instead have an SP that only updates what is sent to it.
>
>~~Bonnie

To do that, woouldn't you need to use dynamic SQL? As the link that Sergey gave you someone stated, the overhead of doing dynamic SQL in the SP would eliminate any speed advantage using the SP would give you. Of course, if you are only using the SP fo security reasons, I guess you could do it.

Also, if you want you could build the SET part of the UPDATE statement in the client and send that as one string to the SP, which would then build the final update statement and EXEC() it.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform