Solved

How to bulk load CSV files into SQL Server Express?

Posted on 2012-03-22
3
309 Views
Last Modified: 2012-04-10
I have 2,616 CSV files with each having an average of 3,200 records.  

I need to combine all of these records into a single large table in SQL Express so that I can do some research on the data and output some charts based on that research.

What is the easiest/fastest way to get all of that data into a single table in SQL Server Express?  (Some of the text fields have commas in them - if that matters.)
0
Comment
Question by:JimHubbard
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
NormanMaina earned 334 total points
ID: 37754086
If the CSV files have the same format,in one folder and have teh columns required to match sql server columns ,you can use SQL Server Intergration Services to create a package to loop through the folder and upload the CSV data into your SQL server table.

This should get you started with SSIS:
http://msdn.microsoft.com/en-us/library/ms170419.aspx
0
 
LVL 12

Assisted Solution

by:NormanMaina
NormanMaina earned 334 total points
ID: 37754158
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 166 total points
ID: 37765176
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question