Solved

Setting up Notification on Table Structure Changes

Posted on 2010-09-14
3
393 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 143

Expert Comment

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

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

831 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