I need to create a proc that reads from a SQL server table and writes to an Excel spreadsheet. Does anyone know how to accomplish this through code? Any help would be appreciated.
Here is a link to an article with a script that will use the sp_oa* procedures to create and write to an Excel spreadsheet as a linked server. The example works for me but it generates an error that I don't understand - it may be related to the fact that I'm running SQL2005.
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.