FUNCTION  fSpecZStatusN

Return the SpecZStatus name, indexed by value

the SpecZStatus values can be found with
Select * from SpecZStatus
Sample call to fSpecZStatusN.
select top 10 dbo.fSpecZStatusN(zStatus) as zStatus
from field

see also fSpecZStatus

Input and output parameters

nametypelengthinoutpnum
@valueint4input1
 varchar40input0