Table of Contents

Class ObjectSchema.Object

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll

sys.objects (Transact-SQL)

Applies to: √ SQL Server (all supported versions) √ Azure SQL Database √ Azure SQL Managed Instance √ Azure Synapse Analytics √ Analytics Platform System (PDW)

Contains a row for each user-defined, schema-scoped object that is created within a database, including natively compiled scalar user-defined function.
For more information, see Scalar User-Defined Functions for In-Memory OLTP.

note


sys.objects does not show DDL triggers, because they are not schema-scoped. All triggers, both DML and DDL, are found in sys.triggers. sys.triggers supports a mixture of name-scoping rules for the various kinds of triggers.


See sys.objects.

[Table(Schema = "sys", Name = "objects", IsView = true)]
public class ObjectSchema.Object
Inheritance
ObjectSchema.Object
Extension Methods

Properties

AssemblyModule

assembly_modules (sys.assembly_modules)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.AssemblyModule? AssemblyModule { get; set; }

Property Value

ObjectSchema.AssemblyModule

ChangeTrackingTables

change_tracking_tables (sys.change_tracking_tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ChangeTrackingSchema.ChangeTrackingTable> ChangeTrackingTables { get; set; }

Property Value

IList<ChangeTrackingSchema.ChangeTrackingTable>

CheckConstraint

check_constraints (sys.check_constraints)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.CheckConstraint? CheckConstraint { get; set; }

Property Value

ObjectSchema.CheckConstraint

ColumnStoreRowGroups

column_store_row_groups (sys.column_store_row_groups)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ColumnStoreRowGroup> ColumnStoreRowGroups { get; set; }

Property Value

IList<ObjectSchema.ColumnStoreRowGroup>

ColumnTypeUsages

column_type_usages (sys.column_type_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ScalarTypesSchema.ColumnTypeUsage> ColumnTypeUsages { get; set; }

Property Value

IList<ScalarTypesSchema.ColumnTypeUsage>

ColumnXmlSchemaCollectionUsages

column_xml_schema_collection_usages (sys.column_xml_schema_collection_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<XmlSchema.ColumnXmlSchemaCollectionUsage> ColumnXmlSchemaCollectionUsages { get; set; }

Property Value

IList<XmlSchema.ColumnXmlSchemaCollectionUsage>

Columns

columns (sys.columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Column> Columns { get; set; }

Property Value

IList<ObjectSchema.Column>

ComputedColumns

computed_columns (sys.computed_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ComputedColumn> ComputedColumns { get; set; }

Property Value

IList<ObjectSchema.ComputedColumn>

CreateDate

Date the object was created.

[Column("create_date")]
[NotNull]
public DateTime CreateDate { get; set; }

Property Value

DateTime

DatabaseEventSessionFields

database_event_session_fields (sys.database_event_session_fields)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ExtendedEventsSchema.DatabaseEventSessionField> DatabaseEventSessionFields { get; set; }

Property Value

IList<ExtendedEventsSchema.DatabaseEventSessionField>

DefaultConstraint

default_constraints (sys.default_constraints)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.DefaultConstraint? DefaultConstraint { get; set; }

Property Value

ObjectSchema.DefaultConstraint

EventNotifications

event_notifications (sys.event_notifications)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.EventNotification> EventNotifications { get; set; }

Property Value

IList<ObjectSchema.EventNotification>

Events

events (sys.events)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Event> Events { get; set; }

Property Value

IList<ObjectSchema.Event>

ExtendedProcedures

extended_procedures (sys.extended_procedures)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ExtendedProcedure> ExtendedProcedures { get; set; }

Property Value

IList<ObjectSchema.ExtendedProcedure>

ExternalTables

external_tables (sys.external_tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ExternalOperationsSchema.ExternalTable> ExternalTables { get; set; }

Property Value

IList<ExternalOperationsSchema.ExternalTable>

FiletableSystemDefinedObjects

filetable_system_defined_objects (sys.filetable_system_defined_objects)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<FilestreamAndFileTableSchema.FileTableSystemDefinedObject> FiletableSystemDefinedObjects { get; set; }

Property Value

IList<FilestreamAndFileTableSchema.FileTableSystemDefinedObject>

Filetables

filetables (sys.filetables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<FilestreamAndFileTableSchema.FileTable> Filetables { get; set; }

Property Value

IList<FilestreamAndFileTableSchema.FileTable>

ForeignKey

foreign_keys (sys.foreign_keys)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.ForeignKey? ForeignKey { get; set; }

Property Value

ObjectSchema.ForeignKey

FulltextIndexCatalogUsages

fulltext_index_catalog_usages (sys.fulltext_index_catalog_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<FullTextSearchSchema.IndexCatalogUsage> FulltextIndexCatalogUsages { get; set; }

Property Value

IList<FullTextSearchSchema.IndexCatalogUsage>

FulltextIndexColumns

fulltext_index_columns (sys.fulltext_index_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<FullTextSearchSchema.IndexColumn> FulltextIndexColumns { get; set; }

Property Value

IList<FullTextSearchSchema.IndexColumn>

FulltextIndexes

fulltext_indexes (sys.fulltext_indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<FullTextSearchSchema.Index> FulltextIndexes { get; set; }

Property Value

IList<FullTextSearchSchema.Index>

FunctionOrderColumns

function_order_columns (sys.function_order_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.FunctionOrderColumn> FunctionOrderColumns { get; set; }

Property Value

IList<ObjectSchema.FunctionOrderColumn>

HashIndexes

hash_indexes (sys.hash_indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.HashIndex> HashIndexes { get; set; }

Property Value

IList<ObjectSchema.HashIndex>

IdentityColumns

identity_columns (sys.identity_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.IdentityColumn> IdentityColumns { get; set; }

Property Value

IList<ObjectSchema.IdentityColumn>

IndexColumns

index_columns (sys.index_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.IndexColumn> IndexColumns { get; set; }

Property Value

IList<ObjectSchema.IndexColumn>

IndexResumableOperations

index_resumable_operations (sys.index_resumable_operations)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.IndexResumableOperation> IndexResumableOperations { get; set; }

Property Value

IList<ObjectSchema.IndexResumableOperation>

Indexes

indexes (sys.indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Index> Indexes { get; set; }

Property Value

IList<ObjectSchema.Index>

InternalPartitions

internal_partitions (sys.internal_partitions)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.InternalPartition> InternalPartitions { get; set; }

Property Value

IList<ObjectSchema.InternalPartition>

InternalTables

internal_tables (sys.internal_tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.InternalTable> InternalTables { get; set; }

Property Value

IList<ObjectSchema.InternalTable>

IsMSShipped

Object is created by an internal SQL Server component.

[Column("is_ms_shipped")]
[NotNull]
public bool IsMSShipped { get; set; }

Property Value

bool

IsPublished

Object is published.

[Column("is_published")]
[NotNull]
public bool IsPublished { get; set; }

Property Value

bool

IsSchemaPublished

Only the schema of the object is published.

[Column("is_schema_published")]
[NotNull]
public bool IsSchemaPublished { get; set; }

Property Value

bool

KeyConstraint

key_constraints (sys.key_constraints)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.KeyConstraint? KeyConstraint { get; set; }

Property Value

ObjectSchema.KeyConstraint

LedgerColumnHistory

ledger_column_history (sys.ledger_column_history)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SecuritySchema.LedgerColumnHistory> LedgerColumnHistory { get; set; }

Property Value

IList<SecuritySchema.LedgerColumnHistory>

LedgerTableHistory

ledger_table_history (sys.ledger_table_history)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SecuritySchema.LedgerTableHistory> LedgerTableHistory { get; set; }

Property Value

IList<SecuritySchema.LedgerTableHistory>

MaskedColumns

masked_columns (sys.masked_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.MaskedColumn> MaskedColumns { get; set; }

Property Value

IList<ObjectSchema.MaskedColumn>

MemoryOptimizedTablesInternalAttributes

memory_optimized_tables_internal_attributes (sys.memory_optimized_tables_internal_attributes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.MemoryOptimizedTablesInternalAttribute> MemoryOptimizedTablesInternalAttributes { get; set; }

Property Value

IList<ObjectSchema.MemoryOptimizedTablesInternalAttribute>

ModifyDate

Date the object was last modified by using an ALTER statement. If the object is a table or a view, modify_date also changes when an index on the table or view is created or altered.

[Column("modify_date")]
[NotNull]
public DateTime ModifyDate { get; set; }

Property Value

DateTime

ModuleAssemblyUsages

module_assembly_usages (sys.module_assembly_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ModuleAssemblyUsage> ModuleAssemblyUsages { get; set; }

Property Value

IList<ObjectSchema.ModuleAssemblyUsage>

Name

Object name.

[Column("name")]
[NotNull]
public string Name { get; set; }

Property Value

string

NumberedProcedureParameters

numbered_procedure_parameters (sys.numbered_procedure_parameters)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.NumberedProcedureParameter> NumberedProcedureParameters { get; set; }

Property Value

IList<ObjectSchema.NumberedProcedureParameter>

NumberedProcedures

numbered_procedures (sys.numbered_procedures)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.NumberedProcedure> NumberedProcedures { get; set; }

Property Value

IList<ObjectSchema.NumberedProcedure>

ObjectID

Object identification number. Is unique within a database.

[Column("object_id")]
[NotNull]
public int ObjectID { get; set; }

Property Value

int

ParameterTypeUsages

parameter_type_usages (sys.parameter_type_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ScalarTypesSchema.ParameterTypeUsage> ParameterTypeUsages { get; set; }

Property Value

IList<ScalarTypesSchema.ParameterTypeUsage>

ParameterXmlSchemaCollectionUsages

parameter_xml_schema_collection_usages (sys.parameter_xml_schema_collection_usages)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<XmlSchema.ParameterXmlSchemaCollectionUsage> ParameterXmlSchemaCollectionUsages { get; set; }

Property Value

IList<XmlSchema.ParameterXmlSchemaCollectionUsage>

Parameters

parameters (sys.parameters)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Parameter> Parameters { get; set; }

Property Value

IList<ObjectSchema.Parameter>

ParentObjectID

ID of the object to which this object belongs.

0 = Not a child object.

[Column("parent_object_id")]
[NotNull]
public int ParentObjectID { get; set; }

Property Value

int

Partitions

partitions (sys.partitions)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Partition> Partitions { get; set; }

Property Value

IList<ObjectSchema.Partition>

PdwColumnDistributionProperties

pdw_column_distribution_properties (sys.pdw_column_distribution_properties)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.ColumnDistributionProperty> PdwColumnDistributionProperties { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.ColumnDistributionProperty>

PdwIndexMappings

pdw_index_mappings (sys.pdw_index_mappings)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.IndexMapping> PdwIndexMappings { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.IndexMapping>

PdwMaterializedViewColumnDistributionProperties

pdw_materialized_view_column_distribution_properties (sys.pdw_materialized_view_column_distribution_properties)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.MaterializedViewColumnDistributionProperty> PdwMaterializedViewColumnDistributionProperties { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.MaterializedViewColumnDistributionProperty>

PdwMaterializedViewDistributionProperties

pdw_materialized_view_distribution_properties (sys.pdw_materialized_view_distribution_properties)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.MaterializedViewDistributionProperty> PdwMaterializedViewDistributionProperties { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.MaterializedViewDistributionProperty>

PdwMaterializedViewMappings

pdw_materialized_view_mappings (sys.pdw_materialized_view_mappings)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.MaterializedViewMapping> PdwMaterializedViewMappings { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.MaterializedViewMapping>

PdwNodesColumnStoreRowGroups

pdw_nodes_column_store_row_groups (sys.pdw_nodes_column_store_row_groups)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.NodesColumnStoreRowGroup> PdwNodesColumnStoreRowGroups { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.NodesColumnStoreRowGroup>

PdwNodesColumns

pdw_nodes_columns (sys.pdw_nodes_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.NodesColumn> PdwNodesColumns { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.NodesColumn>

PdwNodesIndexes

pdw_nodes_indexes (sys.pdw_nodes_indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.NodesIndex> PdwNodesIndexes { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.NodesIndex>

PdwNodesPartitions

pdw_nodes_partitions (sys.pdw_nodes_partitions)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.NodesPartition> PdwNodesPartitions { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.NodesPartition>

PdwNodesTables

pdw_nodes_tables (sys.pdw_nodes_tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.NodesTable> PdwNodesTables { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.NodesTable>

PdwPermanentTableMappings

pdw_permanent_table_mappings (sys.pdw_permanent_table_mappings)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.PermanentTableMapping> PdwPermanentTableMappings { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.PermanentTableMapping>

PdwReplicatedTableCacheState

pdw_replicated_table_cache_state (sys.pdw_replicated_table_cache_state)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.ReplicatedTableCacheState> PdwReplicatedTableCacheState { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.ReplicatedTableCacheState>

PdwTableDistributionProperties

pdw_table_distribution_properties (sys.pdw_table_distribution_properties)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.TableDistributionProperty> PdwTableDistributionProperties { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.TableDistributionProperty>

PdwTableMappings

pdw_table_mappings (sys.pdw_table_mappings)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<AzureSynapseAnalyticsSchema.TableMapping> PdwTableMappings { get; set; }

Property Value

IList<AzureSynapseAnalyticsSchema.TableMapping>

Periods

periods (sys.periods)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Period> Periods { get; set; }

Property Value

IList<ObjectSchema.Period>

PrincipalID

ID of the individual owner, if different from the schema owner. By default, schema-contained objects are owned by the schema owner. However, an alternate owner can be specified by using the ALTER AUTHORIZATION statement to change ownership.

Is NULL if there is no alternate individual owner.

Is NULL if the object type is one of the following:

C = CHECK constraint

D = DEFAULT (constraint or stand-alone)

F = FOREIGN KEY constraint

PK = PRIMARY KEY constraint

R = Rule (old-style, stand-alone)

TA = Assembly (CLR-integration) trigger

TR = SQL trigger

UQ = UNIQUE constraint

EC = Edge constraint

[Column("principal_id")]
[Nullable]
public int? PrincipalID { get; set; }

Property Value

int?

Procedures

procedures (sys.procedures)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Procedure> Procedures { get; set; }

Property Value

IList<ObjectSchema.Procedure>

QueryStoreQuery

query_store_query (sys.query_store_query)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<QueryStoreSchema.QueryStoreQuery> QueryStoreQuery { get; set; }

Property Value

IList<QueryStoreSchema.QueryStoreQuery>

RemoteDataArchiveTables

remote_data_archive_tables (sys.remote_data_archive_tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<StretchDatabaseSchema.RemoteDataArchiveTable> RemoteDataArchiveTables { get; set; }

Property Value

IList<StretchDatabaseSchema.RemoteDataArchiveTable>

SchemaID

ID of the schema that the object is contained in.

Schema-scoped system objects are always contained in the sys or INFORMATION_SCHEMA schemas.

[Column("schema_id")]
[NotNull]
public int SchemaID { get; set; }

Property Value

int

SecurityPolicies

security_policies (sys.security_policies)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SecuritySchema.SecurityPolicy> SecurityPolicies { get; set; }

Property Value

IList<SecuritySchema.SecurityPolicy>

SecurityPredicates

security_predicates (sys.security_predicates)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SecuritySchema.SecurityPredicate> SecurityPredicates { get; set; }

Property Value

IList<SecuritySchema.SecurityPredicate>

SelectiveXmlIndexPaths

selective_xml_index_paths (sys.selective_xml_index_paths)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<XmlSchema.SelectiveXmlIndexPath> SelectiveXmlIndexPaths { get; set; }

Property Value

IList<XmlSchema.SelectiveXmlIndexPath>

Sequences

sequences (sys.sequences)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Sequence> Sequences { get; set; }

Property Value

IList<ObjectSchema.Sequence>

ServerAssemblyModules

server_assembly_modules (sys.server_assembly_modules)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ServerAssemblyModule> ServerAssemblyModules { get; set; }

Property Value

IList<ObjectSchema.ServerAssemblyModule>

ServerEventNotifications

server_event_notifications (sys.server_event_notifications)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ServerEventNotification> ServerEventNotifications { get; set; }

Property Value

IList<ObjectSchema.ServerEventNotification>

ServerEventSessionFields

server_event_session_fields (sys.server_event_session_fields)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ExtendedEventsSchema.ServerEventSessionField> ServerEventSessionFields { get; set; }

Property Value

IList<ExtendedEventsSchema.ServerEventSessionField>

ServerEvents

server_events (sys.server_events)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ServerEvent> ServerEvents { get; set; }

Property Value

IList<ObjectSchema.ServerEvent>

ServerSqlModules

server_sql_modules (sys.server_sql_modules)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ServerSqlModule> ServerSqlModules { get; set; }

Property Value

IList<ObjectSchema.ServerSqlModule>

ServerTriggers

server_triggers (sys.server_triggers)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.ServerTrigger> ServerTriggers { get; set; }

Property Value

IList<ObjectSchema.ServerTrigger>

ServiceQueue

service_queues (sys.service_queues)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ServiceBrokerSchema.ServiceQueue? ServiceQueue { get; set; }

Property Value

ServiceBrokerSchema.ServiceQueue

SpatialIndexTessellations

spatial_index_tessellations (sys.spatial_index_tessellations)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SpatialDataSchema.SpatialIndexTessellation> SpatialIndexTessellations { get; set; }

Property Value

IList<SpatialDataSchema.SpatialIndexTessellation>

SpatialIndexes

spatial_indexes (sys.spatial_indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<SpatialDataSchema.SpatialIndex> SpatialIndexes { get; set; }

Property Value

IList<SpatialDataSchema.SpatialIndex>

SqlDependencies

sql_dependencies (sys.sql_dependencies)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.SqlDependency> SqlDependencies { get; set; }

Property Value

IList<ObjectSchema.SqlDependency>

SqlModules

sql_modules (sys.sql_modules)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.SqlModule> SqlModules { get; set; }

Property Value

IList<ObjectSchema.SqlModule>

Stats

stats (sys.stats)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Stat> Stats { get; set; }

Property Value

IList<ObjectSchema.Stat>

StatsColumns

stats_columns (sys.stats_columns)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.StatsColumn> StatsColumns { get; set; }

Property Value

IList<ObjectSchema.StatsColumn>

Synonym

synonyms (sys.synonyms)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.Synonym? Synonym { get; set; }

Property Value

ObjectSchema.Synonym

Table

tables (sys.tables)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.Table? Table { get; set; }

Property Value

ObjectSchema.Table

TriggerEvents

trigger_events (sys.trigger_events)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.TriggerEvent> TriggerEvents { get; set; }

Property Value

IList<ObjectSchema.TriggerEvent>

Triggers

triggers (sys.triggers)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<ObjectSchema.Trigger> Triggers { get; set; }

Property Value

IList<ObjectSchema.Trigger>

TypeColumn

Object type:

AF = Aggregate function (CLR)

C = CHECK constraint

D = DEFAULT (constraint or stand-alone)

F = FOREIGN KEY constraint

FN = SQL scalar function

FS = Assembly (CLR) scalar-function

FT = Assembly (CLR) table-valued function

IF = SQL inline table-valued function

IT = Internal table

P = SQL Stored Procedure

PC = Assembly (CLR) stored-procedure

PG = Plan guide

PK = PRIMARY KEY constraint

R = Rule (old-style, stand-alone)

RF = Replication-filter-procedure

S = System base table

SN = Synonym

SO = Sequence object

U = Table (user-defined)

V = View

EC = Edge constraint



Applies to: SQL Server 2012 (11.x) and later.

SQ = Service queue

TA = Assembly (CLR) DML trigger

TF = SQL table-valued-function

TR = SQL DML trigger

TT = Table type

UQ = UNIQUE constraint

X = Extended stored procedure



Applies to: SQL Server 2014 (12.x) and later, Azure SQL Database, Azure Synapse Analytics, Analytics Platform System (PDW).

ST = STATS_TREE



Applies to: SQL Server 2016 (13.x) and later, Azure SQL Database, Azure Synapse Analytics, Analytics Platform System (PDW).

ET = External Table

[Column("type")]
[Nullable]
public string? TypeColumn { get; set; }

Property Value

string

TypeDesc

Description of the object type:

AGGREGATE_FUNCTION

CHECK_CONSTRAINT

CLR_SCALAR_FUNCTION

CLR_STORED_PROCEDURE

CLR_TABLE_VALUED_FUNCTION

CLR_TRIGGER

DEFAULT_CONSTRAINT

EXTENDED_STORED_PROCEDURE

FOREIGN_KEY_CONSTRAINT

INTERNAL_TABLE

PLAN_GUIDE

PRIMARY_KEY_CONSTRAINT

REPLICATION_FILTER_PROCEDURE

RULE

SEQUENCE_OBJECT



Applies to: SQL Server 2012 (11.x) and later.

SERVICE_QUEUE

SQL_INLINE_TABLE_VALUED_FUNCTION

SQL_SCALAR_FUNCTION

SQL_STORED_PROCEDURE

SQL_TABLE_VALUED_FUNCTION

SQL_TRIGGER

SYNONYM

SYSTEM_TABLE

TABLE_TYPE

UNIQUE_CONSTRAINT

USER_TABLE

VIEW

[Column("type_desc")]
[Nullable]
public string? TypeDesc { get; set; }

Property Value

string

View

views (sys.views)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public ObjectSchema.View? View { get; set; }

Property Value

ObjectSchema.View

XmlIndexes

xml_indexes (sys.xml_indexes)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = true)]
public IList<XmlSchema.XmlIndex> XmlIndexes { get; set; }

Property Value

IList<XmlSchema.XmlIndex>