Solved

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

Posted on 2011-09-07
2
521 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

778 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