Solved

Setting up Notification on Table Structure Changes

Posted on 2010-09-14
3
390 Views
Last Modified: 2012-05-10
Situation:
I currently have some SQL Server 2000 Tables that have triggers applied to notify the development team if any data is deleted, updated or inserted.  If they are we send out email notifications to let us know what data is changed.   But now they are asking us to setup the same type of process if the table structure is changed, i.e.  If a column name changes, or new column added or colum deleted or datatype changed.  Those are the types of changes we want to track.    Does anyone have some examples or explain what method this can be done?
0
Comment
Question by:jholmes0724
3 Comments
 
LVL 8

Accepted Solution

by:
mustaccio earned 500 total points
ID: 33674279
If you had SQL Server 2005 you could use DDL triggers for that:

CREATE TRIGGER t1 ON DATABASE FOR ALTER_TABLE ...

With SQL Server 2000 I'm afraid you are out of luck. As a workaround, you could set up a scheduled job that would compare contents of the COLUMNS information schema view with its previous contents saved in a backup table...
0
 

Author Comment

by:jholmes0724
ID: 33674326
thanks, we have discussed doing that same thing but still want to see if anyone has a method to do this.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 33680505
I have to confirm above. ..
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now