Solved

Upload .xls file to SQL Server using ASP.NET

Posted on 2010-09-09
2
517 Views
Last Modified: 2012-06-27
Can somone advise mwe on the simplest way to upload a .xls from a ASP.net website(vb) to a table in SQL server. I used to do it with the classic ASP by ploading the file to a folder and then using DTS in SQL but there must be an easier more effective way.  Thanks
0
Comment
Question by:edjones1
2 Comments
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 33637785
0
 
LVL 9

Accepted Solution

by:
Valliappan AN earned 500 total points
ID: 33637951
Have a look at these links:

http://weblogs.asp.net/rajbk/archive/2009/05/02/uploading-an-excel-file-to-sql-through-an-asp-net-webform.aspx
(Uploading an Excel file to SQL through an ASP.NET webform)

http://www.davidhayden.com/blog/dave/archive/2006/05/31/2976.aspx
(Import Excel Spreadsheet Data into SQL Server Database Table Using SqlBulkCopy)

http://forums.asp.net/t/1162069.aspx
(How to import Data from Excel to SQL Server Express)

and

http://weblogs.asp.net/scottgu/archive/2006/05/29/Reading_2F00_Writing-Excel-Spreadsheets-with-ADO.NET.aspx

Hope that helps. Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how the fundamental information of how to create a table.

895 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

11 Experts available now in Live!

Get 1:1 Help Now