Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MessageHandler Database in SQL way too large 4 46
how many extra RAM for SQL server is needed 22 40
Error when saving to sql table a '/' 5 28
CROSS APPLY 4 53
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

832 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