I have a web server which needs to get a snapshot of data overnight. On the local machine I have stored procedures which create tables containing changes with a flag indicating that it is an (A)dd, (C)hange, (D)elete or (L)oad. The selection and creation of the change tables takes just minutes for many hundreds of thousands of records in 12 tables. My problem is what to do with these tables of changes which are to be used to update the web server (hosted).
My first attempt was to create text files, FTP them, bulk insert them into a temporary table to access the update flag, delete the records in the web tables based on PK and then do a bulk insert. Because of special characters I had problems dealing with the text files and abandoned this approach.
My second (current) attempt was to link the web server to the production server. I then issued a delete to the web server for anything in my changed tables and then did an insert into the web server from the production server. Because of limited bandwidth (I assume) I have timeout problems and performance problems. A procedure that is copying 100K of records fails after 2 hours...
I am looking for a method that I may not have thought of. Updating a web servers data has to be something that is popular. I think my main problem is the volumn of data.
Is there a way to export a table into a text file with formatting and then FTP that to the web server which in turn would import that table into a temporary table that could be used to do the update?
Any ideas would be greatly appreciated.
TIA
Mark
My first attempt was to create text files, FTP them, bulk insert them into a temporary table to access the update flag, delete the records in the web tables based on PK and then do a bulk insert. Because of special characters I had problems dealing with the text files and abandoned this approach.
My second (current) attempt was to link the web server to the production server. I then issued a delete to the web server for anything in my changed tables and then did an insert into the web server from the production server. Because of limited bandwidth (I assume) I have timeout problems and performance problems. A procedure that is copying 100K of records fails after 2 hours...
I am looking for a method that I may not have thought of. Updating a web servers data has to be something that is popular. I think my main problem is the volumn of data.
Is there a way to export a table into a text file with formatting and then FTP that to the web server which in turn would import that table into a temporary table that could be used to do the update?
Any ideas would be greatly appreciated.
TIA
Mark