Executing Store Proc BCP Statement

Microsoft SQL Server

I have a store procedure and I want that result of that procedure
queryout to a excel sheet.

like


bcp "DatabaseName.Owner.Procedure_name" queryout
"C:\Folder\testproc.xls" -c -q -S"ServerName" -T

Is it possible??

*** Sent via Developersdex http://www.developersdex.com ***
Use can use xp_cmdshell to call BCP from your stored procedure.