Skip to main content

sql_pool_table_columns

Creates, updates, deletes, gets or lists a sql_pool_table_columns resource.

Overview

Namesql_pool_table_columns
TypeResource
Idazure.synapse.sql_pool_table_columns

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
columnTypestringThe column data type. Known values are: "image", "text", "uniqueidentifier", "date", "time", "datetime2", "datetimeoffset", "tinyint", "smallint", "int", "smalldatetime", "real", "money", "datetime", "float", "sql_variant", "ntext", "bit", "decimal", "numeric", "smallmoney", "bigint", "hierarchyid", "geometry", "geography", "varbinary", "varchar", "binary", "char", "timestamp", "nvarchar", "nchar", "xml", and "sysname".
isComputedbooleanIndicates whether column value is computed or not.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_table_nameselectresource_group_name, workspace_name, sql_pool_name, schema_name, table_name, subscription_id$filterGets columns in a given table in a SQL pool. Gets columns in a given table in a SQL pool.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
schema_namestringThe name of the schema. Required.
sql_pool_namestringSQL pool name. Required.
subscription_idstring
table_namestringThe name of the table. Required.
workspace_namestringThe name of the workspace. Required.
$filterstringAn OData filter expression that filters elements in the collection. Default value is None.

SELECT examples

Gets columns in a given table in a SQL pool. Gets columns in a given table in a SQL pool.

SELECT
id,
name,
columnType,
isComputed,
type
FROM azure.synapse.sql_pool_table_columns
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND sql_pool_name = '{{ sql_pool_name }}' -- required
AND schema_name = '{{ schema_name }}' -- required
AND table_name = '{{ table_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
;