Import selected columns from a CSV files to SQL Server table

只愿长相守 提交于 2019-12-02 07:08:00

If you are using the Import / Export wizard, when you get to Select Source Tables and Views click on the button "Edit Mappings" on the bottom left of the screen. That opens column mappings screen; on the destination column select Ignore to remove the column you don't want to import.

Since most people searching this question in 2019 aren't going to be using SQL2008, I'll add this for SQL Server 2016:

When you choose your Flat File data source, there is an Advanced option to the left of the window. Click that.

You will see a list of field names, and just below that there are 3 buttons. One of them is Delete.

Highlight the field you do not want to include and click the Delete button. Do this for all fields you do not wish to import.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!