I want the return code of stored procedure
In T-SQL syntax is like this :
Code: Select all
DECLARE @RC int
DECLARE @ProdCode nvarchar(15)
DECLARE @RecCode nvarchar(2)
DECLARE @TemplateLib1 nvarchar(80)
DECLARE @TemplateLib2 nvarchar(80)
DECLARE @TemplateLib3 nvarchar(80)
EXECUTE @RC = [dbo].[sp_CreateTemplateFromRec]
@ProdCode
,@RecCode
,@TemplateLib1
,@TemplateLib2
,@TemplateLib3
GO
in TD i use the following code
Code: Select all
Call SqlConnect( hlSql )
Call SqlPrepareSP( hlSql, 'sp_CreateTemplateFromRec :spRecProdCodeRef, :spRecCodeRef, :slRecTempLib1, :slRecTempLib2, :slRecTempLib3 ', ':nlReturnCode')
Call SqlExecute( hlSql )
What is the correct syntaxe to get the correct value of nlReturnCode
Thks