Solved

trigger on sysobjects

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

730 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