Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding new record to DataSets
Message
 
À
05/11/2002 13:51:58
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00718996
Message ID:
00719010
Vues:
23
In your select statement for retrieving your table from the backend, just add a where clause of "where 0=1". This will pull the table structure but without any data.

>All,
>
>How do you fill a dataset for an empty table? I have an example of filling a DataSet and creating a NewRow() for the table and adding it to the table, but if I just want to add a new record, how do I get the DataTable structure so I can add the new record?
>
>TIA
>
>Rex
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform