SQLGetDiagRec returns a native error code. Is there anywhere an overview of the error codes of SQL Server 2012? I couldn\'t find anything on MSDN.
I was also looking for a list myself and found out that you could view them all from the master DB by running this statement:
SELECT * FROM sysmessages