Stored Procedure - Error description??

  • Can anyone tell me how to retrieve the error message if a SQL statement returns @@ERRROR > 0. 

    I need to get the completed message that will describe what column is causing the problem.

     

    TIA for any help

  • I don't believe you will be able to get COLUMNAR data.  All you will get is something like UNABLE TO INSERT NULL...  unless you use custom error messages.

    However, an easy way of troubleshooting is to build your SQL string as a STRING and write that to a TEMPORARY REAL table for review.  I have done this many times and when you review the data (v. variables) most of the time it sticks out like a sore thumb.  Also, this way allows you to run the statement(s) in QA to see what happens



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

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

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