Advertisement

06.13.2008 at 10:04AM PDT, ID: 23483403
[x]
Attachment Details

Generating Output Text File From SQL Server Stored Procedure

Asked by SpeedsterZ28 in SQL Query Syntax, MS SQL Server, SQL Reporting

Tags: Microsoft, SQL Server, 2000, SQL

Hello all!

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!Start Free Trial
[+][-]06.13.2008 at 10:12AM PDT, ID: 21780853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:14AM PDT, ID: 21781406

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:16AM PDT, ID: 21781419

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 02:43PM PDT, ID: 21783028

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, MS SQL Server, SQL Reporting
Tags: Microsoft, SQL Server, 2000, SQL
Sign Up Now!
Solution Provided By: rickchild
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628