简体   繁体   English

将 CSV 文件中的选定列导入 SQL Server 表

[英]Import selected columns from a CSV files to SQL Server table

I am trying to import data from a CSV file to a SQL Server 2008 table.我正在尝试将数据从 CSV 文件导入 SQL Server 2008 表。 Data upload is working, but I want to import only selected columns, not all, and add them to aa new table, of same no.数据上传工作正常,但我只想导入选定的列,而不是全部,并将它们添加到相同编号的新表中。 of columns, using the wizard, but its not happening, the wizard is selecting all the columns.列,使用向导,但它没有发生,向导正在选择所有列。

So is it possible using wizard that I only import selected columns.那么是否可以使用向导只导入选定的列。

I am trying to import data from a CSV file to a SQL Server 2008 table.我正在尝试将数据从CSV文件导入到SQL Server 2008表。 Data upload is working, but I want to import only selected columns, not all, and add them to aa new table, of same no.数据上传正常,但是我只想导入选定的列,而不是全部,然后将它们添加到一个新表中,编号相同。 of columns, using the wizard, but its not happening, the wizard is selecting all the columns.列,使用向导,但没有发生,向导正在选择所有列。

So is it possible using wizard that I only import selected columns.所以有可能使用向导仅导入选定的列。

I am trying to import data from a CSV file to a SQL Server 2008 table.我正在尝试将数据从CSV文件导入到SQL Server 2008表。 Data upload is working, but I want to import only selected columns, not all, and add them to aa new table, of same no.数据上传正常,但是我只想导入选定的列,而不是全部,然后将它们添加到一个新表中,编号相同。 of columns, using the wizard, but its not happening, the wizard is selecting all the columns.列,使用向导,但没有发生,向导正在选择所有列。

So is it possible using wizard that I only import selected columns.所以有可能使用向导仅导入选定的列。

Take a look at this complete guide on how to import and export CSV files to SQL Server.查看有关如何将 CSV 文件导入和导出到 SQL Server 的完整指南 It shows how to load CSV file using BULK INSERT, SSMS Import Wizard (showing how to configure the columns) and a free 3rd party tool called Skyvia.它显示了如何使用 BULK INSERT、SSMS 导入向导(显示如何配置列)和名为 Skyvia 的免费 3rd 方工具加载 CSV 文件。 The last one allows to set up powerful mapping with data transformations, schedule the job for automatic execution and supports FTPs and file storages for CSV storing.最后一个允许使用数据转换设置强大的映射,安排自动执行的作业,并支持 FTP 和文件存储以进行 CSV 存储。

I am trying to import data from a CSV file to a SQL Server 2008 table.我正在尝试将数据从CSV文件导入到SQL Server 2008表。 Data upload is working, but I want to import only selected columns, not all, and add them to aa new table, of same no.数据上传正常,但是我只想导入选定的列,而不是全部,然后将它们添加到一个新表中,编号相同。 of columns, using the wizard, but its not happening, the wizard is selecting all the columns.列,使用向导,但没有发生,向导正在选择所有列。

So is it possible using wizard that I only import selected columns.所以有可能使用向导仅导入选定的列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM