Dropping triggers  sp_help

Chapter 19: Triggers: Enforcing Referential Integrity

Getting information about triggers

As database objects, triggers are listed in sysobjects by name. The type column of sysobjects identifies triggers with the abbreviation “TR”. This query finds the triggers that exist in a database:

select * 
from sysobjects 
where type = "TR" 

The source text for each trigger is stored in syscomments. Execution plans for triggers are stored in sysprocedures. The system procedures described in the following sections provide information from the system tables about triggers.





Copyright © 2005. Sybase Inc. All rights reserved. sp_help

View this book as PDF