SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


EXECUTE a Stored Procedure with NO OUTPUT


EXECUTE a Stored Procedure with NO OUTPUT

Author
Message
Grant Koeneke
Grant Koeneke
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 2

I'm Executing a DTS Package in a Stored Procedure and it is PRINTING the OUTPUT from the execution. The Stored Procedure is for a Report in Reporting Services. Because of the Execution Output I'm not getting the actual dataset that I need for the report.

I'm feeling stupid to ask this but, what is the function or option setting so that there is no Execution Output?


MohammedU
MohammedU
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4702 Visits: 812

I guess you are using the xp_cmdshell to execute the dts package from the procedure...

use SET NOCOUNT ON also inside the proc...

xp_cmdshell 'dtsrun /S... /E /N...', no_output

See BOL for details...



MohammedU
Microsoft SQL Server MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search