creating a new table in the data source RRS feed

  • Question

  • Is there a way to push back a new table created on a dataset to a data source?

    I can create a new table in my dataset as follows:

    Dim newTable As DataTable = new DataTable("MyTable")

    newTable.Columns.Add("ID", Type.GetType("System.Int32"))

    newTable.Columns.Add("Name", Type.GetType("System.String"))


    but i only know how to push back rows, colums, etc to existing tables in the data source.

    I can't find a way to create a new table in the data source.

    any help is appreciated.



    Thursday, March 9, 2006 5:34 AM