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
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