Build CREATE statement using DataSet

J

Jagan Mohan

You dont exactly need CREATE statement to do it.

You can do it in the following way

DataSet ds = new DataSet();
DataTable dt = new DataTable();

dt.Columns.Add("ColName", System.Type.GetType
("System.String"));

ds.Tables.Add(dt);


I am not sure that my understanding is correct, if not so
please do breif your problem.

Thanks,

Jagan Mohan
 
K

Kada Rajasekhar

Hi All,

Yes after adding a DataTable to a DataSet , I want to create the same Table
in the SQL Database.
For that I want to build a "CREATE" statement using the DataTable.

How can I do that ?

Thanks & Regards
Kada
 
K

Kada Rajasekhar

Hi All,

Yes after adding a DataTable to a DataSet , I want to create the same Table
in the SQL Database.
For that I want to build a "CREATE" statement using the DataTable.

How can I do that ?

Thanks & Regards
Kada
 

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