Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

help to tighten use of  cmdshell  or sp_start_job

By Johan Bijnens,

-- The goal is to avoid the use of sp_start_job in an application. So we have the application use RAISERROR to activate the job.
--  1) because you can only start jobs you own
--  2) we don't want to open the cmdshell to everyone
--  3) we want control regarding jobs that run on our server.
--  4) we want to have an indication how much is "ad-hoc"
--

Total article views: 1705 | Views in the last 30 days: 6
 
 
Contribute