what if maximum value is reached [int datatype]

  • Hi All,

    I have a table with a column of type int and has the following properties:

    identity = yes; identity speed = 1; identity increment = 1.

    I'm just wondering what would be the behavior of the table if

    the maximum value is reached (4 000 000 000 +)?

    Will the value of this column reset to 0?

    your response is highly appreciated.

    thank you very much!

  • Try it yourself

    CREATE TABLE Test(i INT IDENTITY(2147483646,1))

    INSERT INTO Test DEFAULT VALUES

    SELECT * FROM Test

    INSERT INTO Test DEFAULT VALUES

    SELECT * FROM Test

    INSERT INTO Test DEFAULT VALUES

    SELECT * FROM Test

    ____________________________________________________

    Deja View - The strange feeling that somewhere, sometime you've optimised this query before

    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply