I am tasked with running a SQL script that creates tables, views, stored procedures, etc for a corporate application. We are attempting our first installation using SQL 2012 and have run into an issue with RAISERROR. There are 26 instances of RAISERROR in the script similar to the following:
I am in dire need of some direction regarding updating the script. Do I need to use sys.sp_addmessage or is there another option?
Duane
Hook'D on Access
MS Access MVP
SQL:
RAISERROR 44444 @ERRMSG;
RAISERROR(N'Cannot insert/update ABCUSERS because there is already a Windows Account ID (WINID) with the same value', 16, 1);
RAISERROR @ERRNUM @ERRMSG;
RAISERROR 44444 N'An error occured while inserting into table ERRDST';
I am in dire need of some direction regarding updating the script. Do I need to use sys.sp_addmessage or is there another option?
Duane
Hook'D on Access
MS Access MVP