I would like to assign some string typed variables to MAximum values of some types in SQL Server 2008.
For example:
string foo = MaxValueInDbFor(SqlDbType.Int);
string boo = MaxValueInDbFor(SqlDbType.SmallInt);
How can I achieve this? Thanks
I would like to assign some string typed variables to MAximum values of some types in SQL Server 2008.
For example:
string foo = MaxValueInDbFor(SqlDbType.Int);
string boo = MaxValueInDbFor(SqlDbType.SmallInt);
How can I achieve this? Thanks
Copyright © 2021 Jogjafile Inc.
If I understand correctly you need this.
Same way you can get
Sql***.MaxValue
orSql***.MinValue
properties for any sql types .Check out System.Data.SqlTypes namespace for more info.