Solved

Upload .xls file to SQL Server using ASP.NET

Posted on 2010-09-09
2
513 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 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

15 Experts available now in Live!

Get 1:1 Help Now