onsdag den 3. oktober 2012

SQL Server Bulk Insert

How to insert bulk data into a SQL Server Table from a CSV file:


BULK
INSERT TugLookup
FROM 'c:\temp\tuglookup.csv'
WITH
(
FIELDTERMINATOR = ';',
ROWTERMINATOR = '\n'
)
GO
--Check the content of the table.
SELECT *
FROM TugLookup
GO

Ingen kommentarer: