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
 int4input0
@namevarchar40input1