dbTalk Databases Forums  

How to use stored procedure output as data source

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How to use stored procedure output as data source in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Snake
 
Posts: n/a

Default How to use stored procedure output as data source - 10-27-2005 , 06:12 PM






I have to take the output stream from a stored procedure and turn it into a
text file. I do not know how to do this without writing it into a table and
then using the table as a datasource, which seems lame. Is there an easy way
to do this?

Thanks

Reply With Quote
  #2  
Old   
Panch
 
Posts: n/a

Default Re: How to use stored procedure output as data source - 10-27-2005 , 07:14 PM






I have done this using bcp and osql

following link will help u
http://www.sqlteam.com/item.asp?ItemID=744

A Panchanathan


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to use stored procedure output as data source - 10-29-2005 , 04:47 AM



Hello Snake,

So long as the stored proc returns a rowset to the task you will be OK.
remember to set

SET NOCOUNT ON in the proc.

Allan



Quote:
I have to take the output stream from a stored procedure and turn it
into a text file. I do not know how to do this without writing it into
a table and then using the table as a datasource, which seems lame.
Is there an easy way to do this?

Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.