--- title: "Query Element (ASSL) | Microsoft Docs" ms.custom: "" ms.date: "03/06/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "analysis-services" - "docset-sql-devref" ms.tgt_pltfrm: "" ms.topic: "reference" apiname: - "Query Element" apilocation: - "http://schemas.microsoft.com/analysisservices/2003/engine" apitype: "Schema" applies_to: - "SQL Server 2016 Preview" helpviewer_keywords: - "Query element" ms.assetid: 832c3337-de6d-43b2-8f1c-75bdba76539b caps.latest.revision: 12 author: "Minewiskan" ms.author: "owend" manager: "erikre" --- # Query Element (ASSL) Contains the text of the query to execute for the notification. ## Syntax ```xml ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |Data type and length|String| |Default value|None| |Cardinality|1-1: Required element that occurs once and only once.| ## Element Relationships |Relationship|Element| |------------------|-------------| |Parent element|[QueryNotification](../../../analysis-services/scripting/objects/querynotification-element-assl.md)| |Child elements|None| ## Remarks The element that corresponds to the parent of **Query** in the Analysis Management Objects (AMO) object model is . ## See Also [ProactiveCachingQueryBinding Data Type (ASSL)](../../../analysis-services/scripting/data-type/proactivecachingquerybinding-data-type-assl.md) [Properties (ASSL)](../../../analysis-services/scripting/properties/properties-assl.md)