Skip to main content

query_text

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

Overview

Namequery_text
TypeResource
Idazure.maria_db.query_text

Fields

NameDatatypeDescription
queryIdtextfield from the properties object
queryIdstextfield from the properties object
query_idtextfield from the properties object
query_texttextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTqueryId, resourceGroupName, serverName, subscriptionIdRetrieve the Query-Store query texts for the queryId.
list_by_serverSELECTqueryIds, resourceGroupName, serverName, subscriptionIdRetrieve the Query-Store query texts for specified queryIds.

SELECT examples

Retrieve the Query-Store query texts for the queryId.

SELECT
queryId,
queryIds,
query_id,
query_text,
resourceGroupName,
serverName,
subscriptionId
FROM azure.maria_db.vw_query_text
WHERE queryId = '{{ queryId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';