Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.81 KB

sys-server-sql-modules-transact-sql.md

File metadata and controls

39 lines (33 loc) · 1.81 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.server_sql_modules (Transact-SQL)
sys.server_sql_modules (Transact-SQL)
rwestMSFT
randolphwest
06/10/2016
sql
system-objects
reference
sys.server_sql_modules
sys.server_sql_modules_TSQL
server_sql_modules_TSQL
server_sql_modules
sys.server_sql_modules catalog view
TSQL

sys.server_sql_modules (Transact-SQL)

[!INCLUDE SQL Server]

Contains the set of SQL modules for server-level triggers of type TR. You can join this relation to sys.server_triggers. The tuple (object_id) is the key of the relation.

Column Name Data Type Description
object_id int This is a FOREIGN KEY reference back to the server-level trigger where this module is defined.
definition nvarchar(max) SQL text that defines this module.

NULL = Encrypted.
uses_ansi_nulls bit Module was created with ANSI NULLS set option set to ON.
uses_quoted_identifier bit Module was created with QUOTED IDENTIFIER set option set to ON.
execute_as_principal_id int ID of the EXECUTE AS server principal.

NULL by default or if EXECUTE AS CALLER

ID of the specified principal if EXECUTE AS SELF EXECUTE AS principal-2 = EXECUTE AS OWNER.

Permissions

[!INCLUDEssCatViewPerm] For more information, see Metadata Visibility Configuration.

See Also

Catalog Views (Transact-SQL)