?
Solved

How do I copy tables between SQL Servers when one is collocated?

Posted on 2010-01-12
3
Medium Priority
?
140 Views
Last Modified: 2013-11-26
I need to copy tables from a remotely hosted SQL Server to my local server.  Both are SQL Server 2008.

I tried linking to the server, but there is no way to identify where the remote server is located in that utility.  I cannot bcp the data out of the server for the same reason.  I exported the data to a CSV file, but BULK INSERT is failing on the identity data when I try to import with the following error:

bulk insert
Attendees
from 'C:\\attendees.txt'
with (keepidentity)

Msg 4866, Level 16, State 1, Line 1
The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
0
Comment
Question by:dtburdick
[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
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 2000 total points
ID: 26296643
why you don't use SSIS?
you can do this with a simple Import / Export wizard
and copy tables from source database to destination
0
 

Author Closing Comment

by:dtburdick
ID: 31676329
Thanks.

Anyone else reading this thread should know that you install SSIS separately and that the Import/Export wizard is not under the SSIS menu the Start menu, but at the root of the SQLServer installation and is titled "Import and Export Data (32-bit)".
0
 
LVL 30

Expert Comment

by:Reza Rad
ID: 26297385
Glad to help,
Regards,
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.
Suggested Courses

770 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