![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I was given advice earlier this week regarding how to assign a returning value from a Stored Procedure into a Global Varaible from a Execute SQL Task. I must be missing the point as i still can not get it to work. The only parameter it is allowing is an input Parameter. Stored Proc CREATE PROCEDURE UpdateHeaders @RtnVal Integer Output, @Licence Varchar(6), @ModifiedDate Varchar(10), @Serial Varchar(3), @Volume Varchar(6), @Status Varchar(1), @Type Varchar(1), @Action Varchar(1) AS ...... ExecuteSQlTask : EXEC UpdateHeaders '217353','21/01/2004','009','000000','Unsubm itted','Live','A', ? OUTPUT or EXEC ? = UpdateHeaders '217353','21/01/2004','009','000000','Unsubm itted','Live','A' neither of which produce an output parameter. can any one help show me where ive gone wrong, or point me in the directon on some info on this Thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Allen, currently im using an Active x task to build the EXEC Updateheaders sql for the executeSQl task.. I was wondering that if i can use global varables |
|
your code example ( which works ) Declare @out int EXEC UpdateHeaders '217353','21/01/2004','009','000000','Unsubmitted','Live','A', @out OUTPUT SELECT @out as OutputValue Now if '217353' is stored in a Global Varaible sLicence , could i use the imput parameter of the executesqltask, and if so how to declare it in the |
![]() |
| Thread Tools | |
| Display Modes | |
| |