Home » Programming / Coding, Technology

Maximum Int Value MS SQL

22 January 2010 260 views No Comment

When you design database tables care should be taken selecting the type of integer columns. If you predict there is chances to have big numbers on the integer column, consider bigint or int accordingly. Of course there are performance issues involved to consider.

Here are the maximum int value in MS SQL server.

bigInt -9223372036854775808 through 9223372036854775807 (8 bytes)
int -2147483648 through 2147483647 (4 bytes)
smallInt -32768 through 32767 (2 bytes)
tinyInt 0 through 255 (1 byte)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.