Create Physical Database Table from DataTable Object RRS feed

  • Question

  • Anyone know if there's an existing tool that can create a physical table in a database, from a DataTable object? I know I could manually traverse the table's columns and build and execute a "Create Table" SQL statement, but I was hoping someone has already done this.

    Thursday, July 12, 2007 9:04 PM


  • EDIT

    You cannot do it without ExecuteNonQuery because System.Data.DataTable is object you need something to persist your table DDL(data definition language).


    Thursday, July 12, 2007 10:41 PM

All replies