Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building UPDATE dynamically
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01596792
Message ID:
01596882
Views:
38
>>>Yes, this is SQL Server 2008. I will Google on how to create a table in C# that can be passed to a SQL Stored Procedure. But then again, even if the stored procedure receives the values via a table instead of XML, I would still have to create an UPDATE "dynamically." So I am not see much gain.
>>>Thank you.
>>
>>Why do you need to create dynamic command? Just pass values for all columns (if they don't change, pass them without change) and update all columns based on that table values.
>
>The problem is with "all columns." Because of design specifics I cannot pass all columns to the stored procedure. Just some. This is why I need to create dynamic command.

By pass values I meant have a row in your table with all columns.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform