I am not sure whether it is the way to do it, but you may try this, it worked for me.
In query analyzer,
* In Query Menu, select Results to File , also by pressing Ctrl+Shift+F
* In Tools -> Options menu, Results tab, clear flag for "Print column
headers(*)"
Execute your sp now, file save dialog will open where you save the file with
.xls extension.
Assuming your SP return result set, this method should work. While opening
file in EXCEL you may get some formatting question for EXCEL to format it
correctly.
BFT1303, to do this in an automated approach, you'll have to use Integration Services, which is how SQL wants you to move data from one type of repository to another.
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.