Skip to main content

managed_database_queries

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

Overview

Namemanaged_database_queries
TypeResource
Idazure.sql.managed_database_queries

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
managedInstanceNametextfield from the properties object
queryIdtextfield from the properties object
query_texttextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, managedInstanceName, queryId, resourceGroupName, subscriptionIdGet query by query id.
list_by_querySELECTdatabaseName, managedInstanceName, queryId, resourceGroupName, subscriptionIdGet query execution statistics by query id.

SELECT examples

Get query by query id.

SELECT
databaseName,
managedInstanceName,
queryId,
query_text,
resourceGroupName,
subscriptionId
FROM azure.sql.vw_managed_database_queries
WHERE databaseName = '{{ databaseName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND queryId = '{{ queryId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';