Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.triggers

  No additional text.


Syntax
CREATE VIEW sys.triggers AS
	SELECT o.name,
		object_id = o.id,
		parent_class = o.pclass,
		parent_class_desc = pc.name,
		parent_id = o.pid,
		type = o.type,
		type_desc = n.name,
		create_date = o.created,
		modify_date = o.modified,
		is_ms_shipped = sysconv(bit, o.status & 1), 		-- OBJALL_MSSHIPPED
		is_disabled = sysconv(bit, o.status & 256), 		-- OBJTRG_DISABLED
		is_not_for_replication = sysconv(bit, o.status & 512), 	-- OBJTRG_NOTFORREPL
		is_instead_of_trigger = sysconv(bit, o.status & 1024) 	-- OBJTRG_INSTEADOF
	FROM sys.sysschobjs o
	LEFT JOIN sys.syspalnames n ON n.class = 'OBTY' AND n.value = o.type
	LEFT JOIN sys.syspalvalues pc ON pc.class = 'UNCL' AND pc.value = o.pclass
	WHERE o.type IN ('TA','TR') AND o.pclass <> 100
		AND has_access('TR', o.id, o.pid, o.nsclass) = 1

 
Last revision 2008RTM
See also

  databases (View)
server_triggers (View)
spt_tables_info_view (View)
sp_addarticle (Procedure)
sp_addmergearticle (Procedure)
sp_addmergesubscription (Procedure)
sp_addsynctriggers (Procedure)
sp_addsynctriggerscore (Procedure)
sp_cdc_cleanup_change_table (Procedure)
sp_cdc_disable_db_internal (Procedure)
sp_cdc_disable_table (Procedure)
sp_cdc_enable_db_internal (Procedure)
sp_cdc_enable_table (Procedure)
sp_changemergearticle (Procedure)
sp_changemergefilter (Procedure)
sp_changemergepublication (Procedure)
sp_check_for_sync_trigger (Procedure)
sp_check_sync_trigger (Procedure)
sp_dboption (Procedure)
sp_dropmergefilter (Procedure)
sp_dropmergepullsubscription (Procedure)
sp_helpdb (Procedure)
sp_IHarticleview (Procedure)
sp_IHget_colinfo (Procedure)
sp_link_publication (Procedure)
sp_mergesubscription_cleanup (Procedure)
sp_MSaddmergetriggers (Procedure)
sp_MSaddmergetriggers_from_template (Procedure)
sp_MSaddmergetriggers_internal (Procedure)
sp_MSaddupdatetrigger (Procedure)
sp_MSarticlecleanup (Procedure)
sp_MSarticle_synctran_commands (Procedure)
sp_MScdc_cleanup_job (Procedure)
sp_MScdc_ddl_database_triggers (Procedure)
sp_MScdc_ddl_server_trigger (Procedure)
sp_MSchange_mergearticle (Procedure)
sp_MSCleanupForPullReinitWithPubId (Procedure)
sp_MScreatedownloadonlytriggers (Procedure)
sp_MScreatelightweightinsertorupdatetriggers (Procedure)
sp_MScreatelightweightprocstriggersconstraints (Procedure)
sp_MScreatelightweighttriggers (Procedure)
sp_MScreate_all_article_repl_views (Procedure)
sp_MScreate_article_logical_record_views (Procedure)
sp_MScreate_dist_tables (Procedure)
sp_MScreate_pub_tables (Procedure)
sp_MSdefer_check (Procedure)
sp_MSdeletelightweightsubscription (Procedure)
sp_MSdependencies (Procedure)
sp_MSdisable_use_partition_groups (Procedure)
sp_MSdroparticletriggers (Procedure)
sp_MSdroplightweighttriggers (Procedure)
sp_MSdropmergearticle (Procedure)
sp_MSDropTriggerProcs (Procedure)
sp_MSdrop_cdc (Procedure)
sp_MSdrop_pub_tables (Procedure)
sp_MSdrop_replcom (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_MSdrop_rlcore (Procedure)
sp_MSestimatemergesnapshotworkload (Procedure)
sp_MSestimatesnapshotworkload (Procedure)
sp_MSgeneratenosyncsubscriptionsetupscript (Procedure)
sp_MSgen_sync_tran_procs (Procedure)
sp_MSget_colinfo (Procedure)
sp_MSget_publisher_rpc (Procedure)
sp_MSget_synctran_column (Procedure)
sp_MShelpreplicationtriggers (Procedure)
sp_MShelp_distribution_agentid (Procedure)
sp_MSlevelcontents (Procedure)
sp_MSleveltombstone (Procedure)
sp_MSmakegeneration (Procedure)
sp_MSmergepublishdb (Procedure)
sp_MSmergesubscribedb (Procedure)
sp_MSmerge_create_sub_table (Procedure)
sp_MSmerge_ddldispatcher (Procedure)
sp_MSmerge_upgrade_subscriber (Procedure)
sp_MSpost_auto_proc (Procedure)
sp_MSprepare_mergearticle (Procedure)
sp_MSreenable_check (Procedure)
sp_MSregenerate_mergetriggers (Procedure)
sp_MSregenerate_mergetriggersprocs (Procedure)
sp_MSremovedbreplication (Procedure)
sp_MSremovedb_merge_replication_brute_force (Procedure)
sp_MSrepltrigpreparecert (Procedure)
sp_MSrepltrigredefine (Procedure)
sp_MSrepl_addarticle (Procedure)
sp_MSrepl_addpublication (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_changesubstatus (Procedure)
sp_MSrepl_ddl_triggers (Procedure)
sp_MSrepl_enable_articles_for_het_sub (Procedure)
sp_MSrepl_get_Oracle_publisher_metadata (Procedure)
sp_MSrepl_helparticle (Procedure)
sp_MSrepl_refresh_heterogeneous_publisher (Procedure)
sp_MSResetTriggerProcs (Procedure)
sp_MSrestoredbreplication (Procedure)
sp_MSrestore_sub_merge (Procedure)
sp_MSscript_multirow_trigger (Procedure)
sp_MSsetup_partition_groups (Procedure)
sp_MSsetup_publication_for_partition_groups (Procedure)
sp_MSsubsetpublication (Procedure)
sp_MStran_altertable (Procedure)
sp_MStran_autoproc (Procedure)
sp_MStran_ddlrepl (Procedure)
sp_MSupdateinitiallightweightsubscription (Procedure)
sp_MSvalidate_subscription (Procedure)
sp_MS_marksystemobject (Procedure)
sp_ORAaddarticle (Procedure)
sp_ORAaddpublisher (Procedure)
sp_ORAcompiletriggers (Procedure)
sp_ORAdroparticle (Procedure)
sp_ORAhelparticle (Procedure)
sp_ProcessResponse (Procedure)
sp_refreshsqlmodule_internal (Procedure)
sp_repladdcolumn (Procedure)
sp_repldropcolumn (Procedure)
sp_settriggerorder (Procedure)
sp_subscription_cleanup (Procedure)
sp_syspolicy_set_config_enabled (Procedure)
sp_syspolicy_update_ddl_trigger (Procedure)
sp_unlink_publication (Procedure)
sp_vupgrade_heterogeneous_publishers (Procedure)
sp_vupgrade_mergeobjects (Procedure)
sp_vupgrade_publisherdb (Procedure)
sysdatabases (View)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash