• Perry Whittle (3/28/2014)


    sql-lover (3/28/2014)


    Perry Whittle (3/28/2014)


    The default behaviour for an identity column now is to increase the seed after a restart or failover, etc. By doing this

    sql-lover (3/27/2014)


    I fixed it via DBCC command

    you are likely compounding the issue you are seeing. You should not have touched it. By setting the seed back it will then increment forward and hit a value that's already previously used.

    There is a trace flag -T272 to make the database engine behave like SQL Server 2008. Its all detailed here

    You misread what I said. Of you are confused.

    If I don't reset the ID, my jobs keep failing, they keep using a lower ID. What I did was the correct and right thing. If the job is trying to insert a record with ID equals to 8, but last value in table and memory is 10, I need to reset via DBCC because it keeps failing, creating a duplicate ID error. That's an ID and column that is auto generated by SQL server, an auto increment. For some weird reason, the value goes down (or got stuck in memory? I don't know)

    My thread is to know if someone else is aware of this bug. It could be VMware, it could be the SAN. NO! It is NOT a code issue.

    I may try later and post table's definition though.

    I'm not confused, but your post is unclear

    Let's leave it like that 🙂

    I said the ID to be inserted was low, when it suppose to be higher, so I don't see how that's unclear. Only way to fix is via DBCC. What I did was correct.