473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SQL transferring data between servers

Hi

I'm trying to get something like this to work:

Application calculates data and stores them in local SQL server.
Once a week this data needs to copied to DVD. Then I need second
application which has to take this data from DVD and send to global SQL
server.

Talking directly from remote hosts to main database is not an option.

How can I dump data from remote SQL servers in an easy way and then put
them onto main database server?

Is it possible to create a "dump" of database but only realated to IDs I
want, save it to file and then just run on the main database server?

Thanks for any help with this!
Jan 14 '08 #1
2 1894
I would say that you should just do a backup of the database, but a
backup would not allow you to selectively choose the rows in the tables you
want to back up.

That being said, you might want to consider a data transformation
service which you could tweak to export the rows that you want to another
data format (excel, comma delimited file, etc, etc) and then use a data
transformation service on the main DB to import the data back into your main
DB.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"garther" <ma*****@cpartner.plwrote in message
news:fm**********@atlantis.news.tpi.pl...
Hi

I'm trying to get something like this to work:

Application calculates data and stores them in local SQL server.
Once a week this data needs to copied to DVD. Then I need second
application which has to take this data from DVD and send to global SQL
server.

Talking directly from remote hosts to main database is not an option.

How can I dump data from remote SQL servers in an easy way and then put
them onto main database server?

Is it possible to create a "dump" of database but only realated to IDs I
want, save it to file and then just run on the main database server?

Thanks for any help with this!

Jan 14 '08 #2


garther wrote:
Hi

I'm trying to get something like this to work:

Application calculates data and stores them in local SQL server.
Once a week this data needs to copied to DVD. Then I need second
application which has to take this data from DVD and send to global SQL
server.

Talking directly from remote hosts to main database is not an option.

How can I dump data from remote SQL servers in an easy way and then put
them onto main database server?

Is it possible to create a "dump" of database but only realated to IDs I
want, save it to file and then just run on the main database server?

Thanks for any help with this!
As Lo-tech as it sounds, one of the quickest ways I found to do this
was to spool the rows to a text file with a little c# app and then use
bulk insert.
I was trying to optimise a stored procedure that took about 20 minutes
to run. I got it down to about 30-45 seconds. The simplest way to
maintain integrity is to timestamp the rows, with an update time too
if you're looking at updating records, and record the last time an
export ran and simply spool out records created/modified after that
point. It gets a bit more complicated if you're going to have multiple
local instances which could update the same data, but it's not
impossible.

You can handle deletes in the same way. Retain the record and mark it
as deleted, update it's time stamp and then export as usual. If
there's no requirement to retain the record (for auditing perhaps)
simply schedule a job to delete anything exported and imported with a
delete flag set to true.

From memory bulk insert can be done from the command line using the
BCP utility. I can't remember the last time I used that though.

The great thing about this solution is you can stream the text file
through a cryptographic/compression stream. Here in the UK there's
been a bit of political outrage when the government lost 25 million
personal records on some cd's, so it might be worth considering if the
data is sensitive.

Jan 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jimb | last post by:
I need some advice on how to securely transfer data between two servers. Here is the situation. We have two sql servers that hold student data. I have full access to my sql server, but only write...
1
by: Byrocat | last post by:
Does anyone have a checklist of the files/operations that are needed to clone the DB2 ODBC connections that are one one desktop system to another? I did this successfully a while ago with...
7
by: Jim Bayers | last post by:
We have a read only connection to the remote campus sql server. For security reasons, my network nazi won't let me have a web server on our local server that has this connection. Fine. He want's...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
1
by: Asaf | last post by:
Hi, I am developing a windows forms client application that will send a large XML data to a web server using Web Services. I saw this article http://www.codeproject.com/soap/MTOMWebServices.asp...
2
by: Neil | last post by:
I need to append data from a database on one server to a table in a database on a different server. Both servers are running SQL 7. How can that be done? Thanks.
2
by: Bob | last post by:
Trying to transfer databases from MSDE to SQL. When I use SQL Enterprise Manager - DTS - import or export, it works for the first database, but then fails for the others. I select the to and from...
0
by: Desmodromic | last post by:
I have two linux servers running DB2 v8.2 with SQL replication. I recently started a full refresh of a single subscription set via the Replication Center GUI. This was successful, but seemed to...
3
by: angusfreefa | last post by:
Dear All, I am facing a problem of transferring data between 2 tables within the same database. I set up 2 tables. The first table is the permanent table (oos_table) for saving records. the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.