Solved

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

Posted on 2008-10-20
3
153 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now