What’s the difference between SMALLINT , INT , and BIGINT ?
What’s the difference between SMALLINT, INT, and BIGINT? Anubhav Sharma 2184 21 Aug 2025 What’s the difference between SMALLINT, INT, and BIGINT?
Difference Between SMALLINT, INT, and BIGINT
These data types store integer (whole) numbers but differ in the range they can hold and the space they use.
Summary
SMALLINT → Small range, less space
INT → Standard integer
BIGINT → Very large range
Use SMALLINT for small values (e.g., age), INT for most numeric IDs, and BIGINT for very large counts (e.g., global user IDs).
Numeric Integer Data Types in SQL Server
Key Points
Best Practice
Always pick the smallest type that fits the data range.