Solved

Create data loader in Visual Studio 2010 to load excel spreadsheet in to SQL.

Posted on 2011-09-07
2
517 Views
Last Modified: 2012-05-12
Is there an easy way to create an excel spreadsheet importer to load data into a sql database in visual studio 2010?
0
Comment
Question by:ogmike2000
2 Comments
 
LVL 6

Accepted Solution

by:
reitzen earned 500 total points
ID: 36499098
I've always had good luck keeping it simple and importing directly using T-SQL
SELECT * INTO tblXLImport FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\test\xltest.xls', 'SELECT * FROM [Customers$]')

Open in new window

0
 

Author Closing Comment

by:ogmike2000
ID: 36500665
Thanks, worked great!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now