Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating, Inserting into a table with a lot of columns
Message
 
 
À
30/09/2010 15:34:10
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01483278
Message ID:
01483423
Vues:
30
>Thanks, Bonnie and Naomi.
>
>That was helpful. I'd like to figure out a way to generate the stored procedure as well.
>I'm certain that I can do it in VFP, but by the time I do that, I can probably type it.
>It's long and debugging is a nightmare if there's just one typo.
>So I'm developing incrementally - twenty or so columns at a time.
>I figured out a way to do all the bindiings automatically and that saved a lot of time.
>
>Is there a way to initialize the values of all the columns in a blank row to the equivalent of VFP's EMPTY()?
>To avoid nulls I'm doing this, column by column.
> ds.Tables["arcust"].Rows[0]["credit"] = 0;
> ds.Tables["arcust"].Rows[0]["pterms"] = " ";
>
> The tabled contains a wide variety of data types.

There are lots of SP generation tools available. A while ago I used MyGeneration which can do a lot more than generate SP only.

Take a look MyGeneration
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform