SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Stored procedure output parameters

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Stored procedure output parameters
Author Message
Ole Jakobsen



Joined: 19 Dec 2003
Posts: 5

Post Stored procedure output parameters Reply with quote

Hi,

Is there a way to retrieve the output parameters for a stored procedure on sql server ?

Looked for an example, but have been unable to find one.

regards,

Thu Feb 05, 2004 8:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Stored procedure output parameters Reply with quote

1. Method 1 using JAL
Create a wrapper procedure and then return that paramater using SELECT

Example procedure:
-------------------------
CREATE PROCEDURE wrapper
AS
DECLARE @V_OUT INT
EXEC my_procedure @V_OUT OUTPUT
SELECT @V_OUT this_is_my_result
go

Example JAL Script
-------------------------
Dim rows, number
Dim output, number
DatabaseConnect "my_profile"
DatabaseRetrieve "EXEC wrapper", rows
DatabaseGet 1, 1, output

2. Method 2 using VBScript
See Microsoft KB #300488
http://support.microsoft.com/default.aspx?scid=kb;EN-US;300488

This can be easily adopted for a job in 24x7.

: Hi,

: Is there a way to retrieve the output parameters for a stored procedure on
: sql server ?

: Looked for an example, but have been unable to find one.

: regards,

Thu Feb 05, 2004 10:21 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.