Introduction:
Here I will explain how to upload or import data from excel to SQL Server using asp.net in c#, vb.net.
Here I will explain how to upload or import data from excel to SQL Server using asp.net in c#, vb.net.
Description:
In previous article I explained Import Excel data to gridview in asp.net, How to Export gridview data to excel/word document, Import Excel data to sql database and some other articles relating to export gridview data. Now I will explain how to upload or import data from excel to SQL Server using asp.net in c#, vb.net.
To implement this concept check below posts here I explained two ways to insert data into database
In previous article I explained Import Excel data to gridview in asp.net, How to Export gridview data to excel/word document, Import Excel data to sql database and some other articles relating to export gridview data. Now I will explain how to upload or import data from excel to SQL Server using asp.net in c#, vb.net.
To implement this concept check below posts here I explained two ways to insert data into database
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
11 comments :
mmm
Hello Sir,
Please give idea for Excel sheet to SQl server insetion using the asp.net C#.
but how to import excel data row by row to database checking blank row
Mr. suresh , when i apply this code locally its is executed but when i try to do it over internet it's not working, should i add any reference file to so that i can upload it over internet?
Hello sir,
when i am trying to import data from excel to DB,it shows Violation of primary key Constraint.
how can i add data in to table using exception.
Can you help me to solve this problem.
Dear sir,
Please provide me an idea to save excel data to the sql server 2005.
How do i upload csv file which is more than 2 GB.
When i uploaded i got error : Exception of type 'System.OutOfMemoryException' was thrown.
Dear Sir
I am upload Excel file in db using wpf mvvm methods. how i can upload pls help me
Dear Sir,
I am uploading multiple excel sheets into multiple tables in sql server...How can i write the code using asp.net c#.net.Please help me
sad
Note: Only a member of this blog may post a comment.