integer Max value constants in SQL Server T-SQL? -
are there constants in t-sql there in other languages provide max , min values ranges of data types such int?
i have code table each row has upper , lower range column, , need entry represents range upper range maximum value int can hold(sort of hackish infinity). prefer not hard code , instead use set upperrange = int.max
there 2 options:
- user-defined scalar function
- properties table
in oracle, can within packages - closest sql server has assemblies...
Comments
Post a Comment