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:
01596883
Views:
47
>>>>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.

I see. Well, if the XML approach does not work out (I am in the process of implementing it) then I will try the "table" approach.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform