E
Ed Minrights
I have a feeling I'm thinking about this the wrong way...
I need to insert lots of rows into lots of different tables and then
submit the whole lot into the database. I'm not concerned about what
rows will already be present in the database, these will all be
inserts only. The data itself will come from a non-DB source. I want
to present the whole thing to the user as a DataGrid before they agree
to submit it all.
With this situation, it seems a bit daft to have to create the all the
DataTable objects programatically (using new DataColumn etc..), when I
simply want the DataTable objects in the DataSet to match those
already in the DB itself. So I want to be able to say "create
DataTable in DataSet based on actual table 'name'".
I figure I could perhaps create the DataTable objects by submitting a
select statement for each table, but I wouldn't want any rows returned
because I'd only want to show the new data in the datagrid.
Any pointers in the right direction?
Thanks
I need to insert lots of rows into lots of different tables and then
submit the whole lot into the database. I'm not concerned about what
rows will already be present in the database, these will all be
inserts only. The data itself will come from a non-DB source. I want
to present the whole thing to the user as a DataGrid before they agree
to submit it all.
With this situation, it seems a bit daft to have to create the all the
DataTable objects programatically (using new DataColumn etc..), when I
simply want the DataTable objects in the DataSet to match those
already in the DB itself. So I want to be able to say "create
DataTable in DataSet based on actual table 'name'".
I figure I could perhaps create the DataTable objects by submitting a
select statement for each table, but I wouldn't want any rows returned
because I'd only want to show the new data in the datagrid.
Any pointers in the right direction?
Thanks