Creating a database directly from the dataset

  • Thread starter Thread starter Pradeep Masare
  • Start date Start date
P

Pradeep Masare

Hi,

Can we create a database directly from a dataset...?

Let's say in my C# program i have a dataset:

1)I have a dataset say
DataSet ds = new DataSet();

2) I add datatables,dataRelations to tables in the
dataset.

3) Add some datarows to the datatables

4)Now can I create a Database out of this dataset ????

[I don't want to create the database (from the asp.net
program) using sql scripts.The dataset needs to be
generated directly from dataset (or the .xsd)]
===========================================================
Alternatively:
When you create a typed dataset using the data controls in
VS.net a .xsd file gets created.
This .xsd file contains the entire schema for database
Now is there a way out to use this .xsd file to create a
database directly???
 
Pradeep,

Not directly. You'll have to use the DataSet's information to build SQL that
will update your database.
 
Back
Top