Generating Output Text File From SQL Server Stored Procedure
Posted on 2008-06-13
I have a Stored Procedure that I use to generate a dataset that is subsequently used in a Crystal Report.
In order to track the data that is being processed, I'd like to generate an ouput file that would be created anytime the Stored Proecedure is run. Ideally, I would like this Output Text file to just contain the one particular column of data from the dataset, but it can contain the entire dataset if necessary.
Now, I've read about using xp_cmdshell and OSQL as options of outputting text. However, this is a routine Client job that will be run on demand by a user without permissions to use commands like xp_cmdshell or OSQL. Is there anything else I can try in order to facillitate this text file export?
Thanks in advance!