Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating, Inserting into a table with a lot of columns
Message
De
29/09/2010 18:36:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Updating, Inserting into a table with a lot of columns
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01483278
Message ID:
01483278
Vues:
109
In an app I'm developing, I'm using stored procedures to update and create new records for a table.
There are lots and lots of columns in this table and it will grow as the app matures.
I'm creating the command to call to the stored procedure and adding the parameters, one by one.
That's a LOT of typing.

Looking at Bonnie's blog, I found some code that will generate the parameters and values for me.
Will that work if the generated parameters are not in the same sequence as they are declared in the stored procedure?

Any other ideas to cut down on the typing?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform