Skip to main content

sql_pool_maintenance_windows

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

Overview

Namesql_pool_maintenance_windows
TypeResource
Idazure.synapse.sql_pool_maintenance_windows

Fields

NameDatatypeDescription
maintenanceWindowNametextfield from the properties object
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
time_rangestextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmaintenanceWindowName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet a SQL pool's Maintenance Windows.
create_or_updateINSERTmaintenanceWindowName, resourceGroupName, sqlPoolName, subscriptionId, workspaceNameCreates or updates a Sql pool's maintenance windows settings.

SELECT examples

Get a SQL pool's Maintenance Windows.

SELECT
maintenanceWindowName,
resourceGroupName,
sqlPoolName,
subscriptionId,
time_ranges,
workspaceName
FROM azure.synapse.vw_sql_pool_maintenance_windows
WHERE maintenanceWindowName = '{{ maintenanceWindowName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_maintenance_windows (
maintenanceWindowName,
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ maintenanceWindowName }}',
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;