Solved

How do I insert from one SQL server A to SQL server B.

Posted on 2008-10-20
3
190 Views
Last Modified: 2012-05-05
I want to run a command like this:

insert into Server_A
(
  Select * from SERVER_B where id >140213
)


The name of ServerA is -  MEDS0010\MSDE_INSTANCE
And Server B  MEDSQL

The name of the database is on both servers are GIDE and the table JOB_EXT

I am currently running SQL enterprise manager from server A

I got these error messages:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
0
Comment
Question by:wademi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
randy_knight earned 500 total points
ID: 22760112
you need to create a linked server on server A which points to server B.

Note that this should only be used for small amounts of data.  If you are moving larger amounts of data between servers, use BCP, DTS, SSIS, etc.

0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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