Hi Friends
How to insert a Excel File into VS (Asp.net 4.0) and then create a new table in SQL MS with the Excel File data ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Garry GibsonPosted Apr 29, 2014, 7:38 AM
http://stackoverflow.com/questions/3321082/from-excel-to-datatable-in-c-sharp-with-open-xml
Also you can check out this .NET Excel component, it provides a direct API for importing an Excel file to a DataTable in C#, like the following:
Hemant KumarPosted Apr 5, 2012, 1:10 AM
This link sounds useful. It will use OleDbConnection to connect to the Excel file then loads it in a DataTable and then sends it to the SqlServer.
Import Data from excel to SQL server using C# in ASP. NET[^]
You can find more posts associated with importing Excel to SQL using C# in CodeProject
I hope it helps,