Creating DataTable and Copy existing DataTable schema?
I'm using vb.net 2010. I have a DataSet with a Table and data. MyData开发者_如何转开发Set1 which contains Table1
I want to create another table that is the same as the Table1 but without data, but it should have the columns, etc.
How can I do this?
You're looking for the Clone
method.
Note that it won't work for tables with foreign keys.
精彩评论