Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building UPDATE dynamically
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01596792
Message ID:
01596881
Vues:
50
>>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.
"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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform