Connecting Tech Pros Worldwide Forums | Help | Site Map

Explicitly fail a SQL Server Job in SQL Server 2000

Justin
Guest
 
Posts: n/a
#1: Jul 23 '05
I have a SQL Server job, which runs mutiple steps. One of the steps
(step 3) looks for a record in the database. How can I explicitly fail
the SQL server job if the database record does not exist?


Simon Hayes
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Explicitly fail a SQL Server Job in SQL Server 2000


You can use RAISERROR with a severity level of 11 or higher to indicate
failure.

Simon

Justin
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Explicitly fail a SQL Server Job in SQL Server 2000


Thanks Simon. That worked.

Closed Thread


Similar Microsoft SQL Server bytes