sys.all_objects (Transact-SQL)sys.all_objects (Transact-SQL)
SQL Server
Banco de Dados SQL do Azure
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
SQL Server
Azure SQL Database
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Mostra o UNION de todos os objetos definidos pelo usuário no escopo do esquema e os objetos de sistema.Shows the UNION of all schema-scoped user-defined objects and system objects.
Nome da colunaColumn name | Tipo de dadosData type | DescriçãoDescription |
---|---|---|
namename | sysnamesysname | Nome do objeto.Object name. |
object_idobject_id | intint | Número de identificação do objeto.Object identification number. É exclusivo em um banco de dados.Is unique within a database. |
principal_idprincipal_id | intint | ID do proprietário individual, se diferente do proprietário do esquema.ID of the individual owner if different from the schema owner. Por padrão, os objetos contidos no esquema pertencem ao proprietário do esquema.By default, schema-contained objects are owned by the schema owner. Porém, outro proprietário pode ser especificado usando a instrução ALTER AUTHORIZATION para alterar a propriedade.However, another owner can be specified by using the ALTER AUTHORIZATION statement to change ownership. É NULL se não houver nenhum proprietário individual alternativo.Is NULL if there is no alternative individual owner. Será NULL se o tipo de objeto for um dos seguintes:Is NULL if the object type is one of the following: C = Restrição CHECKC = CHECK constraint D = DEFAULT (restrição ou autônomo)D = DEFAULT (constraint or stand-alone) F = Restrição FOREIGN KEYF = FOREIGN KEY constraint PK = Restrição PRIMARY KEYPK = PRIMARY KEY constraint R = Regra (estilo antigo, autônomo)R = Rule (old-style, stand-alone) TA = Gatilho (CLR) de assemblyTA = Assembly (CLR) trigger TR = Gatilho SQLTR = SQL trigger UQ = Restrição UNIQUEUQ = UNIQUE constraint |
schema_idschema_id | intint | ID do esquema que contém o objeto.ID of the schema that contains the object. Para todos os objetos de sistema no escopo do esquema inclusos no SQL ServerSQL Server, esse valor estará sempre em (schema_id('sys'), schema_id('INFORMATION_SCHEMA')).For all schema scoped system objects that are included with SQL ServerSQL Server, this value is always in (schema_id('sys'), schema_id('INFORMATION_SCHEMA')). |
parent_object_idparent_object_id | intint | ID do objeto ao qual este objeto pertence.ID of the object to which this object belongs. 0 = Não é um objeto filho.0 = Not a child object. |
typetype | char(2)char(2) | Tipo de objeto:Object type: AF = Função de agregação (CLR)AF = Aggregate function (CLR) C = Restrição CHECKC = CHECK constraint D = DEFAULT (restrição ou autônomo)D = DEFAULT (constraint or stand-alone) F = Restrição FOREIGN KEYF = FOREIGN KEY constraint FN = Função escalar SQLFN = SQL scalar function FS = Função escalar de assembly (CLR)FS = Assembly (CLR) scalar-function FT = Função avaliada por tabela de assembly (CLR)FT = Assembly (CLR) table-valued function IF = Função SQL com valor de tabela embutidaIF = SQL inline table-valued function IT = tabela internaIT = Internal table P = Procedimento armazenado SQLP = SQL Stored Procedure PC = procedimento armazenado Assembly (CLR)PC = Assembly (CLR) stored-procedure PG = Guia de planoPG = Plan guide PK = Restrição PRIMARY KEYPK = PRIMARY KEY constraint R = Regra (estilo antigo, autônomo)R = Rule (old-style, stand-alone) RF = Procedimento de filtro de replicaçãoRF = Replication-filter-procedure S = Tabela base do sistemaS = System base table SN = SinônimoSN = Synonym SQ = Fila de serviçoSQ = Service queue TA = Gatilho DML de assembly (CLR)TA = Assembly (CLR) DML trigger TF = Função com valor de tabela SQLTF = SQL table-valued-function TR = Gatilho DML de SQLTR = SQL DML trigger TT = Tipo de tabelaTT = Table type U = Tabela (definida pelo usuário)U = Table (user-defined) UQ = Restrição UNIQUEUQ = UNIQUE constraint V = ExibiçãoV = View X = Procedimento armazenado estendidoX = Extended stored procedure |
type_desctype_desc | nvarchar(60)nvarchar(60) | Descrição do tipo de objeto.Description of the object type. AGGREGATE_FUNCTIONAGGREGATE_FUNCTION CHECK_CONSTRAINTCHECK_CONSTRAINT DEFAULT_CONSTRAINTDEFAULT_CONSTRAINT FOREIGN_KEY_CONSTRAINTFOREIGN_KEY_CONSTRAINT SQL_SCALAR_FUNCTIONSQL_SCALAR_FUNCTION CLR_SCALAR_FUNCTIONCLR_SCALAR_FUNCTION CLR_TABLE_VALUED_FUNCTIONCLR_TABLE_VALUED_FUNCTION SQL_INLINE_TABLE_VALUED_FUNCTIONSQL_INLINE_TABLE_VALUED_FUNCTION INTERNAL_TABLEINTERNAL_TABLE SQL_STORED_PROCEDURESQL_STORED_PROCEDURE CLR_STORED_PROCEDURECLR_STORED_PROCEDURE PLAN_GUIDEPLAN_GUIDE PRIMARY_KEY_CONSTRAINTPRIMARY_KEY_CONSTRAINT RULERULE REPLICATION_FILTER_PROCEDUREREPLICATION_FILTER_PROCEDURE SYSTEM_TABLESYSTEM_TABLE SYNONYMSYNONYM SERVICE_QUEUESERVICE_QUEUE CLR_TRIGGERCLR_TRIGGER SQL_TABLE_VALUED_FUNCTIONSQL_TABLE_VALUED_FUNCTION SQL_TRIGGERSQL_TRIGGER TABLE_TYPETABLE_TYPE USER_TABLEUSER_TABLE UNIQUE_CONSTRAINTUNIQUE_CONSTRAINT VIEWVIEW EXTENDED_STORED_PROCEDUREEXTENDED_STORED_PROCEDURE |
create_datecreate_date | datetimedatetime | A data em que o objeto foi criado.Date the object was created. |
modify_datemodify_date | datetimedatetime | A data em que o objeto foi modificado pela última vez com uma instrução ALTER.Date the object was last modified by using an ALTER statement. Se o objeto for uma tabela ou uma exibição, modify_date também será alterado quando um índice clusterizado na tabela ou na exibição for criado ou modificado.If the object is a table or a view, modify_date also changes when a clustered index on the table or view is created or modified. |
is_ms_shippedis_ms_shipped | bitbit | O objeto é criado por um componente SQL ServerSQL Server interno.Object created by an internal SQL ServerSQL Server component. |
is_publishedis_published | bitbit | O objeto é publicado.Object is published. |
is_schema_publishedis_schema_published | bitbit | Apenas o esquema do objeto é publicado.Only the schema of the object is published. |
PermissõesPermissions
A visibilidade dos metadados em exibições do catálogo está limitada aos protegíveis que pertencem a um usuário ou para os quais o usuário recebeu permissão.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. Para obter mais informações, consulte Metadata Visibility Configuration.For more information, see Metadata Visibility Configuration.
Consulte tambémSee Also
Exibições de catálogo de objeto(Transact-SQL) Object Catalog Views (Transact-SQL)
Exibições de catálogo (Transact-SQL) Catalog Views (Transact-SQL)
sys.objects (Transact-SQL) sys.objects (Transact-SQL)
sys. system_objects (Transact-SQL)sys.system_objects (Transact-SQL)
Comentários
Carregando comentários...