Hi ,
I want to Insert data from SqlServer to Excel using visual studio web application(using c# language) and sqlserver 2005.In my sqlserver,I have stock table with the columns.the stock table rows increased every day depending upon stock items.I want to give startdate and enddate control in web app.when i click the submit button means it will show the records in excel.what can i do.please help me.
Thanks&Regards,
Gokilavasan.M
Insert data from sqlserver2005 to excel
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jul 9, 2012, 10:53 PM EDT
Then you can export to excel easily.
Refer this article to know how to export datatable to excel.
http://www.c-sharpcorner.com/UploadFile/1a81c5/export-datatable-to-excel-with-formatting-in-C-Sharp/