I know:
SELECT @@ERROR
but this will only give me the ERROR CODE (number), and I need a full text message, for example:
Cannot insert duplicate key string into object 'dbo.TABLE_NAME' with unique index 'IX_ID_unique'.
The statement is complete.
How to do it in MS Sql Server 2005?
EDIT: I need to get this error message on Linux and Windows platforms.
php sql-server
Johnm2
source share