In SQL Server 2008, while inserting a set of records to my table table1 , i am getting a unique key violation error due to the Duplicate data. That is fine, but the error message is not showing which data is duplicated. But in SQL Server 2014 it is showing the duplicate key value also .
Error Message in 2014
Msg 2627, Level 14, State 1, Line 2 Violation of UNIQUE KEY constraint 'UK_table1'. Cannot insert duplicate key in object 'dbo.table1'. The duplicate key value is (xxx).
Error Message in 2008
Msg 2627, Level 14, State 1, Line 2 Violation of UNIQUE KEY constraint 'UK_table1'. Cannot insert duplicate key in object 'dbo.table1'.
Is this a new feature in 2014 or is there any way to show this in SQL Server 2008?
Note:- Hope the question is clear, if it is not please comment. Also if this is a new feature in 2008+, then please add valid reference/link for this
EDIT




@@versions of yourself and @Ponmani that it was introduced in SQL 2008 R2. - strickt01RAISERRORwon't be passing the requisite parameters to that message. You'll need to upgrade... - strickt01