TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sys.system_sql_modules (Transact-SQL)

 

THIS TOPIC APPLIES TO: yesSQL Server (starting with 2008)yesAzure SQL DatabaseyesAzure SQL Data Warehouse yesParallel Data Warehouse

Returns one row per system object that contains an SQL language-defined module. System objects of type FN, IF, P, PC, TF, V have an associated SQL module. To identify the containing object, you can join this view to sys.system_objects.

Column nameData typeDescription
object_idintObject identification number of the containing object, unique within a database.
definitionnvarchar(max)SQL text that defines this module.
uses_ansi_nullsbit1 = Module was created with the SET ANSI_NULLS database option ON.

Always returns 1.
uses_quoted_identifierbit1 = Module was created with SET QUOTED_IDENTIFIER ON.

Always returns 1.
is_schema_boundbit0 = Module was not created with the SCHEMABINDING option.

Always returns 0.
uses_database_collationbit0 = Module does not depend on the default collation of the database.

Always returns 0.
is_recompiledbit0 = Procedure was not created by using the WITH RECOMPILE option.

Always returns 0.
null_on_null_inputbit0 = Module was not created to produce a NULL output on any NULL input.

Always returns 0.
execute_as_principal_idintAlways returns NULL

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.

sys.sql_modules (Transact-SQL)
sys.all_sql_modules (Transact-SQL)
Catalog Views (Transact-SQL)
Object Catalog Views (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft