Skip to main content

sql_pool_restore_points

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

Overview

Namesql_pool_restore_points
TypeResource
Idazure.synapse.sql_pool_restore_points

Fields

NameDatatypeDescription
earliest_restore_datetextfield from the properties object
locationtextResource location.
resourceGroupNametextfield from the properties object
restorePointNametextfield from the properties object
restore_point_creation_datetextfield from the properties object
restore_point_labeltextfield from the properties object
restore_point_typetextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, restorePointName, sqlPoolName, subscriptionId, workspaceNameGets a restore point.
listSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet SQL pool backup information
createINSERTresourceGroupName, sqlPoolName, subscriptionId, workspaceName, data__restorePointLabelCreates a restore point for a data warehouse.
deleteDELETEresourceGroupName, restorePointName, sqlPoolName, subscriptionId, workspaceNameDeletes a restore point.

SELECT examples

Get SQL pool backup information

SELECT
earliest_restore_date,
location,
resourceGroupName,
restorePointName,
restore_point_creation_date,
restore_point_label,
restore_point_type,
sqlPoolName,
subscriptionId,
workspaceName
FROM azure.synapse.vw_sql_pool_restore_points
WHERE 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_restore_points resource.

/*+ create */
INSERT INTO azure.synapse.sql_pool_restore_points (
resourceGroupName,
sqlPoolName,
subscriptionId,
workspaceName,
data__restorePointLabel,
restorePointLabel
)
SELECT
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__restorePointLabel }}',
'{{ restorePointLabel }}'
;

DELETE example

Deletes the specified sql_pool_restore_points resource.

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