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 Development (2000)
 How do you get the Error Message from T-SQL

Author  Topic 

mikeu
Starting Member

5 Posts

Posted - 2001-01-12 : 08:38:25
Hi

How do you get an the error message from a T-SQL script.

Is there a variable that will give me the last error message?

FORMATMESSAGE ( msg_number , param_value [ ,...n ] )

would give me what I want, if I knew where to get the aditional parameters needed for that error.

Any Ideas

Thanks


Mike
   

- Advertisement -