Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Send Mail trigger

Author  Topic 

jayram11
Yak Posting Veteran

97 Posts

Posted - 2011-09-12 : 12:33:07
Hello

I wanted to know if there is an equivalent of DDL triggers in SQL 2000. i want to create a trigger or procedure that would notify me by sending an email if there is any alter, update, drop or create statements run on a database. I know to create one in Sql 2005 using DDL trigger but i am looking for sql 2000 equivalent.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-09-12 : 12:36:36
There is no way to do this in SQL 2000. I suppose you could trace for this info, but that would put a load on your system, so not worth it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jayram11
Yak Posting Veteran

97 Posts

Posted - 2011-09-12 : 12:59:53
Hello Tara,

Thanks. Is there any way of notifying or logging in SQL 2000 about alter, update, drop or create statements run on a database?

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-09-12 : 13:12:08
Only way would be to use a server-side trace. It would be very complicated though, nothing built-in for this.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -