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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 About jobs.

Author  Topic 

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-03-05 : 10:19:49
Is there anyway(trigger) so nobody can delete the jobs in SQL Server?Actually we have 4 people who has SYSADMIN rights in that server and just wanna track out.No information is recorded in error logs and application log.

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2008-03-05 : 10:33:58
I suppose you could put a trigger on sysjobs.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-03-05 : 11:31:14
But how?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-03-05 : 22:39:20
Or read msdb's log with third party tools like Lumigent's Log Explorer.
Go to Top of Page

SusanthaB
Starting Member

14 Posts

Posted - 2008-03-06 : 05:14:02
Set up the profiler for the server which you need to audit job deletions.

Events to be used.

1. SQL: BatchCompleted
2. RPC: Completed
3. SP: Completed

Columns to be used

1. TextData
2. DatabaseID
3. SPID

Filters to be used in TextData column.

1. Like %sp_delete_job%
2. Like %sysjobs_view%

You have the flexibility of modifying these changes according to the requirement.
Eg: You can set filters to captures only selected logins.



Susantha Bathige
Senior DBA, Sri Lanka
Go to Top of Page
   

- Advertisement -