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

  • Home
  • SEARCH
  • 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 8404399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:35:25+00:00 2026-06-09T22:35:25+00:00

Will decimal(18,2) use more storage than decimal(6,2) even if the actual value is 34.25?

  • 0

Will decimal(18,2) use more storage than decimal(6,2) even if the actual value is 34.25?

  • 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-09T22:35:27+00:00Added an answer on June 9, 2026 at 10:35 pm

    The storage required is defined by the precision and scale that you’ve defined in your table.

    See the MSDN documentation on the decimal type.

    With decimal(18, 2) in your case, you’ll use 9 bytes – regardless of what value is stored in that column.

    With decimal(6, 2), you would be using 5 bytes.

    SQL Server 2008 and higher in the Enterprise (or Developer) SKU have a vardecimal flag, too, that enables optimizing the storage of decimal values. Read more about it here at the SQL Server Storage engine team blog

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

Sidebar

Related Questions

This code - Convert.ToDecimal(28.9100000000000000).ToString(c) will convert a string containing a decimal value to a
Will the element be visible even for a blink of an eye If it
While I do understand php, I'm more of a sysadmin than a programmer. Add
I have 2 decimal numbers: 1999,9999 1999,99 if I use function decimal.Round(Temp, 2); then
what decimal separators are in use around the world? (I have a few places
I want to use Decimal class in my Python program for doing financial calculations.
I have a converter that takes a decimal value and converts it to a
I have EditText field with android:numeric=decimal and android:inputType=phone for entering decimal numbers. I use
This is a question more about best practices/design patterns than regexps. In short I
Will the following code cause a ConcurrentModificationException or other side effects? ArrayList<String> newList =

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.