?
Solved

Upload .xls file to SQL Server using ASP.NET

Posted on 2010-09-09
2
Medium Priority
?
536 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:Ed
[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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

650 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