Build CREATE statement using DataSet

  • Thread starter Thread starter Jagan Mohan
  • Start date Start date
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
 
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
 
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
 
Back
Top