Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating, Inserting into a table with a lot of columns
Message
 
 
To
30/09/2010 15:34:10
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01483278
Message ID:
01483423
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform