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)

Monitor Object Changes

By David Benoit,

Based on post http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=4349 I decided to write this script which will check for object changes in all databases and send an email listing the objects changed to the Operator associated with the job. This by no means offsets the need to restrict change access to objects in production, but in those cases when you can't restrict it is a nice basic monitor.

The first part of the script will create the job (you need to change the @owner_login_name and @notify_email_operator_name information) and the second part creates the procedure to check for changes.

Pretty simple but effective.

Total article views: 1501 | Views in the last 30 days: 2
 
Related Articles
FORUM

How to change object owner......

Change Object Owner

FORUM

changes objects ?

Howto find all changed objects since a date

ARTICLE

Change the Settings of a Database Object Using Powershell

This post tells you how to change the QUOTED_IDENTIFIER and ANSI_NULLS settings of a database object...

FORUM

want to change default object name (Textbox) - SSRS -Reports

want to change default object name (Textbox) - SSRS -Reports

FORUM

How to change owned schema for an object

How to change owned schema for an object

 
Contribute