Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created January 5, 2018 09:27
Show Gist options
  • Save nordineb/2cfd4327e67b588f5a4cf8d28311db8b to your computer and use it in GitHub Desktop.
Save nordineb/2cfd4327e67b588f5a4cf8d28311db8b to your computer and use it in GitHub Desktop.
Import-Export Data With Management Studio
BULK INSERT MyTable
FROM 'c:\dump.txt'
WITH
(
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n',
FIRSTROW = 1
)
@nordineb
Copy link
Author

nordineb commented Jan 5, 2018

  1. Select the data to export

  2. Export the data to a text file

image

  1. Import the data
BULK INSERT MyTable
FROM 'c:\dump.txt'
WITH
(
	FIELDTERMINATOR = '\t',
	ROWTERMINATOR = '\n',
	FIRSTROW = 1
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment