You can use bcp to create a .csv file which would default to being opened in excel.
You can use sp_oacreate to start excel and create, populate and save a spreadsheet.
Or use dts to do a similar thing.
Would probably be better to do this in a client app though.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.