Home Forums Programming General Returning Error Message with Error Number RE: Returning Error Message with Error Number

  • all error messages are in master.dbo.sysmessages i believe;

    so you'd select @err=@@error in your proc, then

    select description from master.dbo.sysmessages where error=@err

     

    if the severity was such that a run time error was raised, You could look up the error number in this table.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!