Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting up Notification on Table Structure Changes

Posted on 2010-09-14
3
Medium Priority
?
398 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 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

971 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