SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Best way to Bulk Insert
 New Topic  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

38073 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
2139 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  
 New 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.06 seconds. Powered By: Snitz Forums 2000