Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use dataype which can hold more than 19 digits. So is there any datatype available which can hold larger than 19 digits?

share|improve this question
Out of curiosity, what kind of problem needs to deal with values in quintillion range? Scientific computing comes into mind. – vonPryz Oct 15 '13 at 13:16
up vote 10 down vote accepted

Numeric/Decimal, Float/Real. There's a great answer here, some official documentation here and here, and I also posted a few opinions ages ago, but here is a quick demonstration:

-- overflow error:

DECLARE @x BIGINT        = 9999999999999999999;


-- works:

DECLARE @x DECIMAL(38,0) = 99999999999999999999999999999999999999;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.