Hello all,
I was wondering - I have a dastaset that has been modified, is it possible to build an update/insert/delete combination of statements and NOT use a dataadapter? And then update the database using these statements that were just created, once again not using a dataadapter? I would have an unknown number of datatables and an unknown number of fields (columns). I think I'd have to loop through (for each) all of the tables and all of the fields to build these statements, but is there a way to determine what has been updated/inserted/deleted? Does anyone know how to tell when you're just given a dataset? (Or, am I just wasting my time, and if so, would it be possible to create a dataadapter on the fly??)
Any help would be much appreciated!
TBubbs.
PS:
One of the reasons why I don't want to use a dataadapter in the normal (?) way is because I'd have to set it up all of the time, all of the parameters and what not (oda.insertcommand.parameters.add(...) and so forth). While that's not hard, when you have to do it 500 times (or so) in a row, it become rather time-consuming... especially since they're all different and accessing about a total of 380 tables...
I was wondering - I have a dastaset that has been modified, is it possible to build an update/insert/delete combination of statements and NOT use a dataadapter? And then update the database using these statements that were just created, once again not using a dataadapter? I would have an unknown number of datatables and an unknown number of fields (columns). I think I'd have to loop through (for each) all of the tables and all of the fields to build these statements, but is there a way to determine what has been updated/inserted/deleted? Does anyone know how to tell when you're just given a dataset? (Or, am I just wasting my time, and if so, would it be possible to create a dataadapter on the fly??)
Any help would be much appreciated!
TBubbs.
PS:
One of the reasons why I don't want to use a dataadapter in the normal (?) way is because I'd have to set it up all of the time, all of the parameters and what not (oda.insertcommand.parameters.add(...) and so forth). While that's not hard, when you have to do it 500 times (or so) in a row, it become rather time-consuming... especially since they're all different and accessing about a total of 380 tables...