Integrity Checks failing

  • Message

    Executed as user: dbo. Violation of PRIMARY KEY constraint 'PK_ErrorTrans'. Cannot insert duplicate key in object 'dbo.ErrorTrans'. [SQLSTATE 23000] (Error 2627) The statement has been terminated. [SQLSTATE 01000] (Error 3621). The step failed.We are using SQL 2008

    Regards,

    Goods

  • Seriously, what do you expect from this forum ?

    Without more detail on when this error occurs all that i can say is that you are inserting (possibly updating) data into ErrorTrans that has caused a violation of the primary key. But you already knew that.



    Clear Sky SQL
    My Blog[/url]

  • That's a primary key violation. So you tried to insert two rows with the same value in the primary key column (or columns).

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thanks you...point taken.

  • THANKS GRANT

Viewing 5 posts - 1 through 4 (of 4 total)

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