Solved

Setting up Notification on Table Structure Changes

Posted on 2010-09-14
3
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

751 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