使用SSIS从单个表中的多个csv文件移动数据 [英] Move data from Multiple csv files in single table using SSIS

查看:84
本文介绍了使用SSIS从单个表中的多个csv文件移动数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是SSIS的新手,我必须在SQL Server 2008的一个表中移动大约30个.csv文件的相同格式的数据。

我想知道如何使用SSIS做到这一点。对此最好的方法是什么?我可以对我的问题有一些好文章吗?



谢谢,

Sajid H

Hi All,
I am new to SSIS and i have to move data of around 30 .csv files with same format in one table of SQL server 2008.
I want to know how can i do that using SSIS. What is the best approach for this. Can i have some good article on my problem?

Thanks,
Sajid H

推荐答案

你可以直接写出读取CSV的sql语句。



http://blog.sqlauthority.com / 2008/02/06 / SQL服务器导入-CSV文件-到-SQL服务器使用散装嵌件的负载逗号分隔的文件 - 进入 - SQL服务器/ [<一个HREF =http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into -sql-server /target =_ blanktitle =New Window> ^ ]



创建一个过程并将文件名作为参数传递表和CSV的模式是相同的。
You can directly write sql statements which will read CSV.

http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/[^]

Create a procedure and pass file name as parameter if schema of table and CSV is same.


这篇关于使用SSIS从单个表中的多个csv文件移动数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆