How to get violated constraint name and the table name for which the constraint violated in SQL Server 2005

  • Hi,

    I have a task where in i need to send the constraint and the table name which got violated in a set of DML Statements in a Store Procedure,

    So please help me how to get violated constraint name and the table name for which the constraint violated in SQL Server 2005

    With Regards

    Dakshina Murthy

  • Maybe you could use Try/CATCH

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

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