Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

outputting the Stored Proc output to Text File Pipe (|) Seperated with Headers Expand / Collapse
Author
Message
Posted Monday, March 18, 2013 11:56 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 1:05 PM
Points: 90, Visits: 209
Command to run
Exec Rpt_OrderReport '1/1/2013' , '1/31/2013'
Need a code which will save the output to Text file with headers and column data pipe (|) seperated.


Post #1432291
Posted Monday, March 18, 2013 7:44 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, August 18, 2014 8:36 AM
Points: 2,836, Visits: 5,066
skb 44459 (3/18/2013)
Command to run
Exec Rpt_OrderReport '1/1/2013' , '1/31/2013'
Need a code which will save the output to Text file with headers and column data pipe (|) seperated.




Why not use SSIS? You can try bcp out, if your sp is trivial select (not using temp tables) then it will also work without changes in sp.



_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)

How to post your question to get the best and quick help
Post #1432432
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse