G
Guest
I am novice with C## and ADO.NET. All my prior experience is with VB and old
style ADO.
We have a desktop application that uses MSDE as its database. We need to
have a way to export rows from a few tables from one users computer to
another users computer. This has to happen in a disconnected way so using
DTS is not an option. These are steps hat I was planning to use.
1)use SQLAdapter to create a Dataset with data to be exported on the source
computer.
2)Use DataSet WriteXML method to write out data to xml file.(User then can
email xml file to another user)
3)Create Dataset on Target computer and use ReadXMl method to read data into
dataset.
4)Modify keys on data so as to avoid primary key violatons
5)Create SQLDataAdapter on target computer. Pass in Dataset with data to be
merged while called Update method on SQLAdapter.
I have succesfully done steps 1-3 but I am having problems with 4 and 5.
Has anyone done anything similar to this? Is this the correct way to do
this? Any
pointers to examples of how to this is appreciated.
Thanks in advance.
style ADO.
We have a desktop application that uses MSDE as its database. We need to
have a way to export rows from a few tables from one users computer to
another users computer. This has to happen in a disconnected way so using
DTS is not an option. These are steps hat I was planning to use.
1)use SQLAdapter to create a Dataset with data to be exported on the source
computer.
2)Use DataSet WriteXML method to write out data to xml file.(User then can
email xml file to another user)
3)Create Dataset on Target computer and use ReadXMl method to read data into
dataset.
4)Modify keys on data so as to avoid primary key violatons
5)Create SQLDataAdapter on target computer. Pass in Dataset with data to be
merged while called Update method on SQLAdapter.
I have succesfully done steps 1-3 but I am having problems with 4 and 5.
Has anyone done anything similar to this? Is this the correct way to do
this? Any
pointers to examples of how to this is appreciated.
Thanks in advance.