Use one or more scalar UDFs?
One per constant:
- dbo.CONST_Bicycle returns 1
- dbo.CONST_Car returns 2
One per enum
- dbo.CONST_Types('Bicycle') returns 1
- dbo.CONST_Types('Car') returns 1
Or use a table with ID, Name per enum
Use a client side enum to match this (perhaps with validation against the table solution)
There is no quick or clean way to do this like there is in .net (as per your comment).