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.
Loading
Suthish NairPosted Aug 1, 2011, 4:05 PM
Lakshmi Narayan JPosted Aug 1, 2011, 10:08 AM
--Regards,
Lakshmi
Priya LingePosted Aug 1, 2011, 8:38 AM
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.