Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Best way to Bulk Insert

Author  Topic 

Informer30
Starting Member

26 Posts

Posted - 2014-07-28 : 17:25:36
Hi All,

I want to know the best way to insert approx 500 csv files.

Each file containing approx 70k rows.

Each csv comes with suffix of datetime

Please can you advise...

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-07-28 : 17:45:57
I would use SSIS, looping through the files.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2014-07-30 : 01:47:32
Another option is powershell , which has very good handling on reading csv files,fine manipulation in general and connecting to SQL Server.
It's usage will depend on how you manage you're overall SQL Server estate.
Is the structure the same on all csv files?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

tm
Posting Yak Master

160 Posts

Posted - 2014-07-31 : 08:29:23
Another option is to use BCP utility and Batch file to loop through CSV files in the folder.
Go to Top of Page
   

- Advertisement -