Returns the union of sys.sql_modules and sys.system_sql_modules.
ID of the object of the containing object. Is unique within a database.
SQL text that defines this module.
NULL = Encrypted
Module was created with SET ANSI_NULLS ON.
Module was created with SET QUOTED_IDENTIFIER ON.
Module was created with the SCHEMABINDING option.
1 = Schema-bound module definition depends on the default-collation of the database for correct evaluation; otherwise, 0. Such a dependency prevents changing the default collation of the database.
Procedure was created using the WITH RECOMPILE option.
Module was declared to produce a NULL output on any NULL input.
ID of the EXECUTE AS database principal.
NULL by default or if EXECUTE AS CALLER.
ID of the specified principal if EXECUTE AS SELF or EXECUTE AS <principal>.
-2 = EXECUTE AS OWNER.
In SQL Server 2005 and later versions, the visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.