UFN_NAMEFORMATFIELD_GETCODE
Gets the field code associated with a name format field
Return
| Return Type |
|---|
| tinyint |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @FIELDID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_NAMEFORMATFIELD_GETCODE(@FIELDID uniqueidentifier)
returns tinyint
with execute as caller
as begin
declare @fieldCode tinyint = (select fieldcode from dbo.NAMEFORMATFIELD where ID = @FIELDID)
return @fieldCode
end