Solved

trigger on sysobjects

Posted on 1998-04-20
1
739 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now