FUNCTION  fInsideMask

Returns the InsideMask value corresponding to a name

The InsideMask values can be shown with Select * from InsideMask
Sample call to find photo objects which are masked
select top 10 objID, insideMask
from PhotoObj
where (dbo.fInsideMask('INMASK_BLEEDING') & insideMask) > 0

see also fInsideMaskN

Input and output parameters

nametypelengthinoutpnum
@namevarchar40input1
 tinyint1output0