Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:30:21+00:00 2026-06-14T07:30:21+00:00

Nice simple question for the db guys, Its not terribly important but im curious.

  • 0

Nice simple question for the db guys,
Its not terribly important but im curious.

Is there something smaller (numeric) that is smaller than a tinyint.

Im storing 120 different values and nearly all of them are going to be (0-9).

A tinyint is the smallest I can find and it hold a value of upto 255. (3 digits)

DB:

Im using MSSqlServer 2008 version 10.00.1600

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:30:22+00:00Added an answer on June 14, 2026 at 7:30 am

    Numerically tinyint is likely as small as you can go (it really depends on the database engine you are using). You could use char(1) and then rely on implicit conversion to query the values but that would be needless overhead to solve a problem that doesn’t really need solving. Also, char(1) is still going to consume 1 byte, 8 bits, which ranges 0-255. I would consider this a micro-optimization and not worth the time/effort.

    I know you are probably asking for academic purposes, but in terms of database storage, tinyint is small enough for almost all situations. If you are that concerned about space consumption, I would say you need to look at other options than a traditional RDBMS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A nice simple question: Is there something similar to http://studiostyl.es/ for Eclipse? Update :
Here's a strange question for you guys, I have a nice sorted list that
Actually, I have a design question here. Its very simple but the point is:
Simple question to which I can't find any nice answer by myself: Let's say
I have a very simple problem but cannot find a nice solution. I have
This sounds like a relatively simple question, but I haven't been able to get
This is probably not a simple question so I am not looking for a
the question is simple... is there any difference in using this->yourvariable or yourvariable directly
Maybe it's a very simple Question, but I don't know how to solve it.
Another question provides a nice, simple solution for implementing a test for equality of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.