Solved

Upload .xls file to SQL Server using ASP.NET

Posted on 2010-09-09
2
526 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Any benefit to adding a Clustered index here? 4 37
SQL State HYT00. Timeout expired proplem 8 42
Difference between Highcharts and Mapbox 10 44
Sql server query 8 20
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

737 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