Advertisements

Bulk insert into SQL from a file

Of course the file needs to be on your sql server (or a share)

BULK
INSERT CSVTest
FROM ‘c:\csvtest.txt’
WITH
(
FIELDTERMINATOR = ‘,’,
ROWTERMINATOR = ‘\n’
)
GO

 

Advertisements