FUNCTION  fPhotoType

Returns the PhotoType value, indexed by name (Galaxy, Star,...)

the PhotoType names can be found with
Select * from PhotoType
Sample call to fPhotoType.
select top 10 *
from photoObj
where type = dbo.fPhotoType('Star')

see also fPhotoTypeN

Input and output parameters

nametypelengthinoutpnum
@namevarchar40input1
 int4output0