Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to import Excel sheet data into a SQL Server Table.

Status
Not open for further replies.

Weese

Programmer
Apr 3, 2003
17
Hi Friends,
I am having one excel file which needs to be converted into a SQL Table. I need to use asp.net. Please let me know if there is any way to do it. Pointers to the sample program would be very useful. Thanks a lot in advance.
 
This is ASP forum. You may want to post this in ASP.NET forum forum855

-DNG
 
The easiest way to do it might be to use MSAccess to connect to your database, import the Excel file into Access, and upload it that way.

Or do you want to parse uploaded files and use the results to build a CREATE TABLE command in SQL... run the command... and then flip through the rows of the spreadsheet while doing SQL INSERTs?

Or, even better if you are doing multiples would be to use DTS inside of SQL Server. You can script DTS packages using VBScript so that should be familiar enough to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top