I need help in export data from table to excel file using sql query. and with header and footer.
I used master..xp_cmdshell
with passing db name, table name, and path where I store excel file any buddy can solve this. and any other way like query through export data to excel.
I must say I want to solve problem using query only. because I require only query.