![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i have a stored procedure that counts the number of records in a table and returns an integer ie CREATE PROCEDURE TESTSP @RTNVAL INTEGER OUTPUT AS Set NoCount on Select @RTNVAL = Count(*) from Table1 If @RtnVal > 0 begin Set @RtnVal = 1 Return(@RtnVal) end else Return(@RtnVal) GO If i call this from an executeSQL task how can i assign the returnvalue to a global varaible |
#3
| |||
| |||
|
|
-----Original Message----- Try either one in an Execute SQL task: exec ? = TESTSP or exec TESTSP ? output "Peter Newman" <anonymous (AT) discussions (DOT) microsoft.com wrote in message news:B32F7FE9-8530-4C36-9A93- 568AEF4F42C3 (AT) microsoft (DOT) com... i have a stored procedure that counts the number of records in a table and returns an integer ie CREATE PROCEDURE TESTSP @RTNVAL INTEGER OUTPUT AS Set NoCount on Select @RTNVAL = Count(*) from Table1 If @RtnVal > 0 begin Set @RtnVal = 1 Return(@RtnVal) end else Return(@RtnVal) GO If i call this from an executeSQL task how can i assign the returnvalue to a global varaible . |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |