Is it possible to import sql server data in to Excel using c#?
If so, how can I do this?
Yes. It is possible even using C++ and ODBC :)
To do it in C#, you need to create Excel document object. To create Excel Document object, you need first to create reference to Microsoft Excel Object Library. Then read the data from SQL Server using ADO.Net. Then insert this data into opened Excel document object. Then you need to save this Excel document.