473,698 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1916
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.co m

"garther" <ma*****@cpartn er.plwrote in message
news:fm******** **@atlantis.new s.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
4545
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 access to the main sql server on campus. I hope to use XML and SSL to transfer student data to the main server. As for generating the XML, I'll have an asp.net page set up in a secure directory that will generate the data in xml format. The...
1
3188
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 another desktop but the latest one blows up when I attempt to establish a connection through DBArtisan. What I did was: 1) ensure that the sqlnodir and sqlnobak diretories exist and are
7
1196
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 to isolate our server with the connection to the remote server from the outside world. ---------------------- | Campus server | ---------------------- | ----------------------
15
5078
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 form2....and there the data that i key in form1 will appear to form2 in textbox2 Thanks
1
2066
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 for uploading files using MTOM. Is there any way to transfer large data from the client to the web server using WSE3 with chunks but instead of using files, using the memory?
2
1428
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
2590
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 databases using DTS - Import - 'MS OLE DB Provider for SQL Server', then select 'Copy objects and data between SQL Servers'. It fails with the generic error message: 'Copy objects failed', nothing further. I tried to just copy data, and it...
0
1357
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 take a lot longer than I anticipated. Throughout the process I was getting low disk space warnings on my desktop PC. At the time, I didn't pay too much attention to this. However, the next day I discovered the following file on my desktop PC:
3
2668
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 other table is a temp table (oos_table_temp) for storing records which all data would be deleted after the data transferred to the permanent table. below is the code I am currently using. Dim strNewTable As String Dim strOldTable As String
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.