Skip to main content

database_columns

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

Overview

Namedatabase_columns
TypeResource
Idazure.sql.database_columns

Fields

NameDatatypeDescription
columnNametextfield from the properties object
column_typetextfield from the properties object
databaseNametextfield from the properties object
is_computedtextfield from the properties object
memory_optimizedtextfield from the properties object
resourceGroupNametextfield from the properties object
schemaNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
tableNametextfield from the properties object
temporal_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcolumnName, databaseName, resourceGroupName, schemaName, serverName, subscriptionId, tableNameGet database column
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdList database columns
list_by_tableSELECTdatabaseName, resourceGroupName, schemaName, serverName, subscriptionId, tableNameList database columns

SELECT examples

List database columns

SELECT
columnName,
column_type,
databaseName,
is_computed,
memory_optimized,
resourceGroupName,
schemaName,
serverName,
subscriptionId,
tableName,
temporal_type
FROM azure.sql.vw_database_columns
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';