Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
heliang
Starting Member
38 Posts |
Posted - 2013-08-05 : 15:56:43
|
I need to setup something in SQL job, which will call a procedure (sp_checkrows). If it returns anything then go to next step. otherwise quick and sent error message. How could I do that?Thanks! |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
heliang
Starting Member
38 Posts |
Posted - 2013-08-06 : 14:40:08
|
I have following, but do not know how to go further. What does that look like? and how it work with success and fail actions?beginexec dbo.sp_checkrowsif @@ROWCOUNT<>0Print 'Successes: 'elseRAISERROR ('fail',16,1)end |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|