Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2010-01-12
Medium Priority
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
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)".
Question by:dtburdick
  • 2
LVL 30

Accepted Solution

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

Author Closing Comment

ID: 31676329

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)".
LVL 30

Expert Comment

by:Reza Rad
ID: 26297385
Glad to help,

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Suggested Courses

581 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