Hi Folks
I am writing an app the has two elements, a base app and a mobile app. From time to time, the mobile unit will need to copy data up to a master database.
My plan is to have two separate connections, but have them share a dataset. The Mobile unit will fill a datatable in the dataset using a "SELECT * FROM DATABASE1.TABLE" type statement. Then I would like to use an "INSERT INTO DATABASE2.MASTERTABLE (SELECT * FROM DATASET/DATATABLE)".
My problem is I don't know exactly how to phrase the second statement, to get the data from a datatable instead of a actual table or view. Can someone tell me what the proper phrasing is to do this? Or is there a better way to do this that I may not be aware of?
Thanks for any help you can provide.
Craig
CraigHartz
I am writing an app the has two elements, a base app and a mobile app. From time to time, the mobile unit will need to copy data up to a master database.
My plan is to have two separate connections, but have them share a dataset. The Mobile unit will fill a datatable in the dataset using a "SELECT * FROM DATABASE1.TABLE" type statement. Then I would like to use an "INSERT INTO DATABASE2.MASTERTABLE (SELECT * FROM DATASET/DATATABLE)".
My problem is I don't know exactly how to phrase the second statement, to get the data from a datatable instead of a actual table or view. Can someone tell me what the proper phrasing is to do this? Or is there a better way to do this that I may not be aware of?
Thanks for any help you can provide.
Craig
CraigHartz