Class ExternalOperationsSchema.ExternalTable
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.external_tables (Transact-SQL)
Applies to: √ SQL Server 2016 (13.x) and later √ Azure SQL Database √ Azure SQL Managed Instance √ Azure Synapse Analytics √ Analytics Platform System (PDW)
Contains a row for each external table in the current database.
See sys.external_tables.
[Table(Schema = "sys", Name = "external_tables", IsView = true)]
public class ExternalOperationsSchema.ExternalTable
- Inheritance
-
ExternalOperationsSchema.ExternalTable
- Extension Methods
Properties
CreateDate
Date the object was created.
[Column("create_date")]
[NotNull]
public DateTime CreateDate { get; set; }
Property Value
DataSourceID
Object ID for the external data source.
[Column("data_source_id")]
[NotNull]
public int DataSourceID { get; set; }
Property Value
DistributionDesc
For external tables over a SHARD_MAP_MANAGER external data source, this is the distribution type displayed as a string.
[Column("distribution_desc")]
[Nullable]
public string? DistributionDesc { get; set; }
Property Value
DistributionType
For external tables over a SHARD_MAP_MANAGER external data source, this is the data distribution of the rows across the underlying base tables.
Range: 0 - Sharded
1 - Replicated
2 - Round robin
[Column("distribution_type")]
[Nullable]
public int? DistributionType { get; set; }
Property Value
- int?
FileFormatID
For external tables over a HADOOP external data source, this is the Object ID for the external file format.
[Column("file_format_id")]
[Nullable]
public int? FileFormatID { get; set; }
Property Value
- int?
IsMSShipped
Object is created by an internal SQL Server component.
[Column("is_ms_shipped")]
[NotNull]
public bool IsMSShipped { get; set; }
Property Value
IsPublished
Object is published.
[Column("is_published")]
[NotNull]
public bool IsPublished { get; set; }
Property Value
IsSchemaPublished
Only the schema of the object is published.
[Column("is_schema_published")]
[NotNull]
public bool IsSchemaPublished { get; set; }
Property Value
Location
For external tables over a HADOOP external data source, this is the path of the external data in HDFS.
[Column("location")]
[Nullable]
public string? Location { get; set; }
Property Value
MaxColumnIDUsed
Maximum column ID ever used for this table.
[Column("max_column_id_used")]
[Nullable]
public int? MaxColumnIDUsed { get; set; }
Property Value
- int?
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
Name
Object name.
[Column("name")]
[NotNull]
public string Name { get; set; }
Property Value
Object
objects (sys.objects)
[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = false)]
public ObjectSchema.Object Object { get; set; }
Property Value
ObjectID
Object identification number. Is unique within a database.
[Column("object_id")]
[NotNull]
public int ObjectID { get; set; }
Property Value
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
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?
RejectSampleValue
For reject_type = percentage, this is the number of rows to load, either successfully or unsuccessfully, before calculating the percentage of rejected rows.
Range: NULL if reject_type = VALUE.
[Column("reject_sample_value")]
[Nullable]
public int? RejectSampleValue { get; set; }
Property Value
- int?
RejectType
For external tables over a HADOOP external data source, this is the way rejected rows are counted when querying external data.
Range: VALUE - the number of rejected rows.
PERCENTAGE - the percentage of rejected rows.
[Column("reject_type")]
[Nullable]
public byte? RejectType { get; set; }
Property Value
- byte?
RejectValue
For external tables over a HADOOP external data source:
For reject_type = value, this is the number of row rejections to allow before failing the query.
For reject_type = percentage, this is the percentage of row rejections to allow before failing the query.
[Column("reject_value")]
[Nullable]
public double? RejectValue { get; set; }
Property Value
RemoteObjectName
For external tables over a SHARD_MAP_MANAGER external data source, this is the name of the base table on the remote databases (if different from the name of the external table).
[Column("remote_object_name")]
[Nullable]
public string? RemoteObjectName { get; set; }
Property Value
RemoteSchemaName
For external tables over a SHARD_MAP_MANAGER external data source, this is the schema where the base table is located on the remote databases (if different from the schema where the external table is defined).
[Column("remote_schema_name")]
[Nullable]
public string? RemoteSchemaName { get; set; }
Property Value
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
ShardingColumnID
For external tables over a SHARD_MAP_MANAGER external data source and a sharded distribution, this is the column ID of the column that contains the sharding key values.
[Column("sharding_column_id")]
[NotNull]
public int ShardingColumnID { get; set; }
Property Value
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
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
UsesAnsiNulls
Table was created with the SET ANSI_NULLS database option ON.
[Column("uses_ansi_nulls")]
[Nullable]
public bool? UsesAnsiNulls { get; set; }
Property Value
- bool?