how to get SQL Server error message

  • I am trying to develop a SQL Server Stored Procedure, which will be called from shell scripts, so I can not really trap the error messages on the Front End. Inside Stored Procedure, I get @@Error, but that is just a error number. The SysMessages table has general info about this table, but would not give me the column name etc.

    Does anyone know how to get exact error message in Stored Procedure?

  • Cross post ?!?

    Cheers,

    Frank

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply