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 2000 Forums
 Transact-SQL (2000)
 Datatype: INT Vs BIGINT

Author  Topic 

scelamko
Constraint Violating Yak Guru

309 Posts

Posted - 2006-07-27 : 10:02:19
Guys,

What is the maximum value that a column with datatype INT and BIGINT can hold??

Thanks

Q
Yak Posting Veteran

76 Posts

Posted - 2006-07-27 : 10:10:17
int, bigint, smallint, and tinyint
Exact number data types that use integer data.

bigint

Integer (whole number) data from -2^63 (-9223372036854775808) through 2^63-1 (9223372036854775807). Storage size is 8 bytes.

int

Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). Storage size is 4 bytes. The SQL-92 synonym for int is integer.

smallint

Integer data from -2^15 (-32,768) through 2^15 - 1 (32,767). Storage size is 2 bytes.

tinyint

Integer data from 0 through 255. Storage size is 1 byte.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-27 : 10:37:33
Read about datatypes in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-07-27 : 10:43:20
quote:
Originally posted by scelamko

Guys,

What is the maximum value that a column with datatype INT and BIGINT can hold??

Thanks




look that up in BOL or google it.



-ec
Go to Top of Page
   

- Advertisement -