I'm new to ADO.NET
Can I populate dataset from one database(connection) and update another database with same dataset (with defrent command object connection)
I need to grab data from one database and update another one
(I can do it through data reader by looping through but I want to do it with datasets)
Thanks
Spartakiran
Loading
spartakiranPosted Aug 14, 2005, 6:43 AM
Two completly defrent databases
One is Oracle another is Sybase.
What I need is bulk extractions from one database to another
Database tables are similar(not exactly the same as they are deferent databases)
E.g.
DB1 -- TableA
Col1 varchar
Col2 number
E.g. in DB2 -- TableA
Colx varchar
Coly number
DavePosted Aug 4, 2005, 11:38 AM
If anything, you could create the first Dataset from DatabaseA, then create another Dataset from
a DataAdapter against DatabaseB, copy the information from the first dataset to the second, then use
the DataAdapter to write the information back to DatabaseB.
I'm sure theres a better way, for instance i'm sure theres a way to modify the schema on the tables
in the Dataset, then just use another DataAdapter to write the info back.
Of course, if you can use Stored Procedures on the two servers, you could just do it that way and
not fool around with Datasets.
spartakiranPosted Aug 4, 2005, 7:15 AM
Is it possible to map the column names to update command?
Mihir SolankiPosted Aug 3, 2005, 12:39 PM