Solved

trigger on sysobjects

Posted on 1998-04-20
1
748 Views
Last Modified: 2012-08-14
the system allows creation of triggers on sysobjects table. this works fine when one does changes to the sysobjects table after setting 'allow updates' option on. however, the trigger does not fire, when let's say you compile a procedure, which also goes through dropping and recreating a procedure. i am wondering about the difference in two scenarios.
0
Comment
Question by:sajalk
1 Comment
 
LVL 10

Accepted Solution

by:
bret earned 100 total points
ID: 1091332
The difference, I think, would be that triggers are designed to fire on certain commands:  insert, update, and delete.  Drop procedures and create procedure are not one of those commands,
so the trigger doesn't fire.

Actually, I'm a bit surprised that they fire at all for system tables, as in the 4.2 version triggers could be created on system tables but would never fire (and this was documented).
But it sounds like Microsoft has enhanced them somewhat.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

808 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