Solved

Insert data from and to another database and server

Posted on 2009-03-29
5
503 Views
Last Modified: 2012-05-06
Hi,

Is it possible to copy/move data from a different server and database to another server and database in SQL? It's easy to copy/move data within 1 server but how can this be done in 2 different servers? Any ideas?
0
Comment
Question by:JaimeJegonia
5 Comments
 
LVL 3

Expert Comment

by:xiong8086
ID: 24015393
If you want to insert data from server A to server B.
You need to add a linked server in server A, which is pointing to server B. the syntax to create linked server is here:
http://msdn.microsoft.com/en-us/library/ms190479.aspx

then you need to create linked server login. sytax is here.
http://msdn.microsoft.com/en-us/library/ms189811.aspx

then you can access server B tables in Server A through "linkedServerToServerB.DBName.dbo.tablename"

regards,
Xiong
0
 
LVL 26

Expert Comment

by:Chris Luttrell
ID: 24015396
create a linked servre between the two servers.
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24015475
The simplest way to achieve this is using the Import / Export wizard in SSMS.

http://msdn.microsoft.com/en-us/library/ms188032(SQL.90).aspx

Steps below:

1. Right click your database in SSMS.
2. Choose Import / Export Data and then place your Source and Destination tables correctly to have it done.
0
 

Author Closing Comment

by:JaimeJegonia
ID: 31564149
I've been ignoring this Import/Export function for years and I didn't know how useful it is until now. Thanks for introducing it to me. I think I need to explore the tools I use a little bit more. Thanks again!!
0
 

Author Comment

by:JaimeJegonia
ID: 24015571
Thanks xiong8086 and CGLuttrell for your prompt responses. But I think the best answer for my problem is from rrjegan17.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
A beginner asks: Which macos postgreSQL client? 5 56
Problems "swapping" SQL Server DBs 2 20
Are triggers slow? 7 12
Parse this column 6 27
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question