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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Best way to Bulk Insert
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

26 Posts

Posted - 07/28/2014 :  17:25:36  Show Profile  Reply with Quote
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...


Almighty SQL Goddess

38200 Posts

Posted - 07/28/2014 :  17:45:57  Show Profile  Visit tkizer's Homepage  Reply with Quote
I would use SSIS, looping through the files.

Tara Kizer
SQL Server MVP since 2007
Go to Top of Page

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 07/30/2014 :  01:47:32  Show Profile  Visit jackv's Homepage  Reply with Quote
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
Go to Top of Page

Posting Yak Master

160 Posts

Posted - 07/31/2014 :  08:29:23  Show Profile  Reply with Quote
Another option is to use BCP utility and Batch file to loop through CSV files in the folder.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000