Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CommandBuilder vs Stored Proc for updating
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01445437
Message ID:
01445464
Vues:
36
>>
>>Can you give us an idea of what you are trying to do? Maybe we can help..
>
>Say I have a dataset of one table with one row. And I need to create an UPDATE command to pass to a stored procedure. So far, in the book I am reading, I only found a way to do it by creating SQL parameter object and adding a parameter for each column that has been changed. And I don't know how to determine which columns have been change in a generic way. Does it make sense? TIA.

Normally I would create an update SP that has parameters for all fields that could be updated, and pass those fields back whether they were updated or not. In general, that winds up being all fields for a table aside from the primary key.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform