TRY CATCH And Error Messages

  • I have been using TRY CATCH to capture errors and write them to the log.

    One particular error I had was performing a restore via TSQL when the drive ran out of disk space. However, the error returned by the ERROR_MESSAGE() was the RESTORE failed (which it did) but what I want to really know is why ie. lack of disk space. Is it possible to retrieve this information via a TRY CATCH?

  • Not that I know of. Some error conditions produce multiple error messages; the TRY..CATCH related error functions just capture the first one.

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

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