Skip to main content

sql_pools

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

Overview

Namesql_pools
TypeResource
Idazure.synapse.sql_pools

Fields

NameDatatypeDescription
collationtextfield from the properties object
create_modetextfield from the properties object
creation_datetextfield from the properties object
locationtextThe geo-location where the resource lives
max_size_bytestextfield from the properties object
provisioning_statetextfield from the properties object
recoverable_database_idtextfield from the properties object
resourceGroupNametextfield from the properties object
restore_point_in_timetextfield from the properties object
skutextThe resource model definition representing SKU
source_database_deletion_datetextfield from the properties object
source_database_idtextfield from the properties object
sqlPoolNametextfield from the properties object
statustextfield from the properties object
storage_account_typetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet SQL pool properties
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameList all SQL pools
createINSERTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameCreate a SQL pool
deleteDELETEresourceGroupName, sqlPoolName, subscriptionId, workspaceNameDelete a SQL pool
updateUPDATEresourceGroupName, sqlPoolName, subscriptionId, workspaceNameApply a partial update to a SQL pool
pauseEXECresourceGroupName, sqlPoolName, subscriptionId, workspaceNamePause a SQL pool
resumeEXECresourceGroupName, sqlPoolName, subscriptionId, workspaceNameResume a SQL pool

SELECT examples

List all SQL pools

SELECT
collation,
create_mode,
creation_date,
location,
max_size_bytes,
provisioning_state,
recoverable_database_id,
resourceGroupName,
restore_point_in_time,
sku,
source_database_deletion_date,
source_database_id,
sqlPoolName,
status,
storage_account_type,
subscriptionId,
tags,
workspaceName
FROM azure.synapse.vw_sql_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new sql_pools resource.

/*+ create */
INSERT INTO azure.synapse.sql_pools (
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
tags,
location,
sku,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a sql_pools resource.

/*+ update */
UPDATE azure.synapse.sql_pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified sql_pools resource.

/*+ delete */
DELETE FROM azure.synapse.sql_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';