July 17th, 2000, 05:33 PM
Hi,
My application requires orders to be sent from a branch office to the central office and back. To accomplish this, I am currently exporting various tables into CSV format, sending via HTTP, and re-inserting them into the database on the other end. My problem is that there are many central offices and even more branches, and each has its own database. Now the database format changes from time to time because of enhancements and bug fixes, and when they do, the routines that import the CSV files are likely to break because the data is in the incorrect order or whatever. This is a constant source of headache and frustration. I would like to use the Save method of the Recordset object to save the recordset to a stream as XML. This works no problem, but I am uncertain how to proceed with the other end of this conversation which is to convert the XML Stream (Recordset) back into a Recordset, or better into a SQL insert statement. I am using Access and SQL Server databases, so I prefer a solution that works as independent of the underlying data source as possible. I am trying for a solution that frees my code from having to maintain any knowledge about the database schemas on either end.
Can someone please tell be how to get the Stream containing the Recordset XML back into the other database on the receiving end of the conversation ?
Thanks to anyone who can help.
My application requires orders to be sent from a branch office to the central office and back. To accomplish this, I am currently exporting various tables into CSV format, sending via HTTP, and re-inserting them into the database on the other end. My problem is that there are many central offices and even more branches, and each has its own database. Now the database format changes from time to time because of enhancements and bug fixes, and when they do, the routines that import the CSV files are likely to break because the data is in the incorrect order or whatever. This is a constant source of headache and frustration. I would like to use the Save method of the Recordset object to save the recordset to a stream as XML. This works no problem, but I am uncertain how to proceed with the other end of this conversation which is to convert the XML Stream (Recordset) back into a Recordset, or better into a SQL insert statement. I am using Access and SQL Server databases, so I prefer a solution that works as independent of the underlying data source as possible. I am trying for a solution that frees my code from having to maintain any knowledge about the database schemas on either end.
Can someone please tell be how to get the Stream containing the Recordset XML back into the other database on the receiving end of the conversation ?
Thanks to anyone who can help.