I have a txt file(tab delimited) which has almost 1200 records. I m doing a bulk insert operation to get the data from .txt file to a table- which(structure) is already created in the database. I don't know why bulk insert is taking forever. Any suggestions on where/what/how to check what's causing this operation to take forever? Thanks. I did it before as well and it used to work fine. Any reasons?
BULK INSERT DataFromatltemp
FROM '\\abcd\Admin\temp\Copyatltemp07.txt'
WITH
(
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
GO
As almost everything related to RDBMS and performance, it depends on a series of variables, but there are some hints you can look first:
I hope this hints can be helpful.