Re: Update database using DataAdapter for DataSet populated from XML file?
- From: "W.G. Ryan MVP" <WilliamRyan@xxxxxxxxxxxxxxxx>
- Date: Mon, 3 Oct 2005 08:46:02 -0400
If the dataset is serialized with the diffgram, then the rowstate of each
row will be in tact and provided that's how you want it in the end database,
then you can just configure an adapter an call Update passing in the
dataset. If the state is different, then just loop through row by row and
update each row manually (which is all the adapter does under the hood).
HTH,
Bill
"NorCan" <NorCan@xxxxxxxxxxxx> wrote in message
news:eDnOOjAyFHA.3152@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have an XML file with data which I am reading into a dataset. I want to
> make changes to a table in my database based on values from the dataset.
> These changes can include updates, inserts and deletes.
>
> I would like to use a DataAdapter (odbc) to do the update.
>
> However, my dataset was not filled using the DataAdapter... how can I make
> use of the DataAdapter to update the datasource in this scenario?
>
>
> Regards,
> Frode
.
- References:
- Prev by Date: Update database using DataAdapter for DataSet populated from XML file?
- Next by Date: Need to query special functions
- Previous by thread: Update database using DataAdapter for DataSet populated from XML file?
- Next by thread: Re: Update database using DataAdapter for DataSet populated from XML file?
- Index(es):
Relevant Pages
|