>>>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