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

The following fields are returned by SELECT queries:

Successfully retrieved database column.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, databaseName, schemaName, tableName, columnName, subscriptionIdGet database column
list_by_tableselectresourceGroupName, serverName, databaseName, schemaName, tableName, subscriptionId$filterList database columns
list_by_databaseselectresourceGroupName, serverName, databaseName, subscriptionIdschema, table, column, orderBy, $skiptokenList database columns

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
columnNamestringThe name of the column.
databaseNamestringThe name of the database.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
schemaNamestringThe name of the schema.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.
tableNamestringThe name of the table.
$filterstringAn OData filter expression that filters elements in the collection.
$skiptokenstringAn opaque token that identifies a starting point in the collection.
columnarray
orderByarray
schemaarray
tablearray

SELECT examples

Get database column

SELECT
properties
FROM azure.sql.database_columns
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND schemaName = '{{ schemaName }}' -- required
AND tableName = '{{ tableName }}' -- required
AND columnName = '{{ columnName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;