Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 difference between int and tinyint

Author  Topic 

programer
Posting Yak Master

221 Posts

Posted - 2011-01-26 : 08:03:18
Hi,

What is the difference between int and tinyint?

Regards

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-01-26 : 08:22:17
The differences are in the minimum and maximum values that each type can hold.
tinyint 0 to 255
int -2,147,483,648 to 2,147,483,647

and the size needed in storage
tinyint 1 byte
int 4 byte


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -