Creating a database directly from the dataset

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???
 
K

Kathleen Dollard

Pradeep,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top