Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Identity Field

Identity Field

Scheduled Pinned Locked Moved Database
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhammad Qasim Pasta
    wrote on last edited by
    #1

    If we have an identity field wit data type of BigInt ... but at certain stage it will overflow ... then what will happen and how can prevent for such scenario?

    K 1 Reply Last reply
    0
    • M Muhammad Qasim Pasta

      If we have an identity field wit data type of BigInt ... but at certain stage it will overflow ... then what will happen and how can prevent for such scenario?

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      use decimal data type this allows max value i.e. 38 digits

      Regards KP

      M 1 Reply Last reply
      0
      • K Krish KP

        use decimal data type this allows max value i.e. 38 digits

        Regards KP

        M Offline
        M Offline
        Muhammad Qasim Pasta
        wrote on last edited by
        #3

        But at certain stage ... it could overflow too! then? for example.. in case of Amazon or any service like that...

        K 1 Reply Last reply
        0
        • M Muhammad Qasim Pasta

          But at certain stage ... it could overflow too! then? for example.. in case of Amazon or any service like that...

          K Offline
          K Offline
          Krish KP
          wrote on last edited by
          #4

          every s/w has its own limitations. in SQL Server 2000 decimal is the one which can be used max digits pls check whether your number is more than 38 digits or in how many yrs it is going to reach this limit. or use a char/varchar data type which allowes you even more. or else take a new table.

          Regards KP

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups