Hi all,
I have one problem.
I uploading Excel sheet into my db. In my excel I have 300 records. I take the data from excel sheet to dataset. Now I want send that dataset to Sql server and that data will be inserted to table.
Please help me...
Thanks in advance.
--Regards,
Lakshmi.
Sending Dataset To SP
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Priya LingeRank #785 · 2.9K reputationPosted Aug 1, 2011, 4:38 AM EDT
Please see below link.
http://insqlserver.com/content/how-import-ms-excel-data-sql-server-table-using-cnet
Here you will get the code for import MS Excel data to SQL Server table using c#.net.
You can also try this,
Export data from Excel to new SQL Server table
select *
into SQLServerTable FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\testing.xls;HDR=YES',
'SELECT * FROM [Sheet1$]')
Hope this will help you.
Thanks.
Lakshmi Narayan J22 reputationPosted Aug 1, 2011, 6:08 AM EDT
--Regards,
Lakshmi
Suthish NairRank #92 · 22.8K reputationPosted Aug 1, 2011, 12:05 PM EDT