UFN_BATCH_GETIDBYTEMPLATE
Return
| Return Type |
|---|
| uniqueidentifier |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @BATCHNUMBER | nvarchar(100) | IN | |
| @BATCHTEMPLATEID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_BATCH_GETIDBYTEMPLATE
(
@BATCHNUMBER nvarchar(100),
@BATCHTEMPLATEID uniqueidentifier
)
returns uniqueidentifier
with execute as caller
as
begin
declare @ID uniqueidentifier;
select @ID = ID from dbo.BATCH where BATCHNUMBER = @BATCHNUMBER and BATCHTEMPLATEID = @BATCHTEMPLATEID;
return @ID;
end