Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional Parameters
Message
From
24/02/2002 23:47:42
 
 
To
24/02/2002 13:53:13
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00624260
Message ID:
00624382
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform