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 6565723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:07:46+00:00 2026-05-25T14:07:46+00:00

i declared a column as numeric(5,3) in sql server 2008 exp r2 and i

  • 0

i declared a column as numeric(5,3) in sql server 2008 exp r2 and i assumed that it would allow me to save values like 12345.123 but when i tried to enter anything greater than 100 it gives me overflow error. it made me believe that in numeric(5,3), 5 represents the total length of number including precision and scale. Having this in mind, i changed the type of column to decimal(9,3) and assumed that it would allow me to enter values like 123456.123 but it again gives overflow error. I can’t understand how this datatype and its precision and scale is interpreted by sql server.
Update:
Strange thing is that when inserting value numeric(9,3) only allows to enter values like 1234.123 but when editing the row i can enter value 123456.123. don’t know what’s happening here 🙁

  • 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-05-25T14:07:46+00:00Added an answer on May 25, 2026 at 2:07 pm

    decimal(9,3) should work fine for 123456.123 please recheck!

    Executing

    declare @d decimal(9,3) = 123456.123 
    

    gives no error. This datatype allows 6 digits to the left of the decimal point and 3 to the right.

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

Sidebar

Related Questions

I've declared Javascript arrays in such a way that I could then access them
I have two classes declared like this: class Object1 { protected ulong guid; protected
I need to convert the following stored procedure of SQL Server to MySQL. I
I have a table in sql server 2005 which holds an ip range and
I have an column declared as int (called HourMil) which stores the time in
Need help with this SQL Server 2000 procedure. The problem is made difficult because
In MS SQL Server if I want to check the results from a Stored
I need to include a column name in the where clause of SQL query
I'm trying to implement SQL Server CE code in Windows Phone 7.1 (Mango). I
Environment: Rails 2.2.2, Oracle 10g Most of the columns declared date in my ActiveRecord

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.