Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

bcp import to SQL Server 2008 R2 hangs

$
0
0
I am investigating the intricacies of SQL Server having used it for years as a dumb back-end storage facility.

I need to import several million records into a SQL table from a pipe-delimited text file. I have tried SSMS 'Import/Export' which is slow so I tried bcp from the command line.

Importing records into an empty table with no indexes worked a dream. However..

Tried to import 13 million records into an indexed table (yeah, I know...). After almost 50% of the import (6721000 records) bcp appears to have hung and the Server disk is flashing continuously.

Any ideas please? I am going to leave this one overnight to see what happens... Could it be an index issue?

Tomorrow I plan to drop the indexes - try again - and rebuild the indexes.

All information gratefully received. Thanks.

Dave W

Viewing all articles
Browse latest Browse all 13329

Trending Articles