Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Full text of error message

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-06-10 : 09:30:40
Witold writes "Hi

Is there a way to retrieve the full text of error message within T-SQL?
I can get the value of @@ERROR and query the sysmessages table but I will not get the text with variables substituted with runtime values. For example, I can get the message:

Cannot insert the value NULL into column '%.*ls', table '%.*ls'; column does not allow nulls. %ls fails.

while the server reports the error:

Cannot insert the value NULL into column 'PARAM_NAME', table 'TEST_DB.dbo.REQUEST_PARAMS'; column does not allow nulls. INSERT fails.

So can I get the full server message?

Thanks

Witold"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-06-10 : 09:54:32
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=16633

Go to Top of Page
   

- Advertisement -