Import CSV file into SQL Server

后端 未结 12 1639
梦谈多话
梦谈多话 2020-11-22 15:41

I am looking for help to import a .csv file into SQL Server using BULK INSERT and I have few basic questions.

Issues:

12条回答
  •  [愿得一人]
    2020-11-22 16:30

    Here's how I would solve it:

    1. Just Save your CSV File as a XLS Sheet in excel(By Doing so, you wouldn't have to worry about delimitiers. Excel's spreadsheet format will be read as a table and imported directly into a SQL Table)

    2. Import the File Using SSIS

    3. Write a Custom Script in the import manager to omit/modify the data you're looking for.(Or run a master script to scrutinize the data you're looking to remove)

    Good Luck.

提交回复
热议问题