Hi,

I have loaded up some data into a DataTable as opposed to a
Dataset. The DataAdapter allows this.

I don't need all the associated stuff with the DataSet and
this is why I have chosen the DataTable.

However I'd like to update the changes to the DataTable to
the database it was loaded from. The DataAdapter can
update a dataset but not a datatable. How can I do this
then without having to resort to a manual procedure.

Does the version of the .NET framework I'm running make a
difference. I have 1.0. Does 1.1 support updating of
DataTables.

Thanks,

Nick Zdunic

Re: Updating a DataTable as opposed to a DataSet by David

David
Tue Sep 16 11:18:49 CDT 2003


"Nick Zdunic" <nick@ss.com.au> wrote in message
news:009f01c37c02$3ac36a90$a001280a@phx.gbl...
> Hi,
>
> I have loaded up some data into a DataTable as opposed to a
> Dataset. The DataAdapter allows this.
>
> I don't need all the associated stuff with the DataSet and
> this is why I have chosen the DataTable.
>
> However I'd like to update the changes to the DataTable to
> the database it was loaded from. The DataAdapter can
> update a dataset but not a datatable. How can I do this
> then without having to resort to a manual procedure.
>
> Does the version of the .NET framework I'm running make a
> difference. I have 1.0. Does 1.1 support updating of
> DataTables.

Most DataAdapters (SQLDataAdapter, OleDbDataAdapter, OracleDataAdapter)
offer an overload to Update that accepts a DataTable. If your DataAdapter
does not, you can always add your table to a new empty DataSet.

David