Last active
August 29, 2015 14:18
-
-
Save mykwillis/cffe1981586d8948f502 to your computer and use it in GitHub Desktop.
Populate MSSQL table with CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN TRANSACTION; | |
TRUNCATE TABLE MultiListingCampaignMappings; | |
BULK INSERT MultiListingCampaignMappings | |
FROM 'c:\users\Administrator\multimappings.csv' | |
WITH | |
( | |
FIELDTERMINATOR = ',', --CSV field delimiter | |
ROWTERMINATOR = '\n' --Use to shift the control to next row | |
); | |
COMMIT TRANSACTION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment