title | description | ms.reviewer | ms.topic | ms.date | monikerRange |
---|---|---|---|---|---|
Set statement |
Learn how to use the set statement to set a request property for the duration of the query. |
alexans |
reference |
08/11/2024 |
microsoft-fabric || azure-data-explorer |
[!INCLUDE applies] [!INCLUDE fabric] [!INCLUDE azure-data-explorer] [!INCLUDE monitor] [!INCLUDE sentinel]
The set
statement is used to set a request property for the duration of the query.
Request properties control how a query executes and returns results. They can be boolean flags, which are false
by default, or have an integer value. A query may contain zero, one, or more set statements. Set statements affect only the tabular expression statements that trail them in the program order. Any two statements must be separated by a semicolon.
Request properties aren't formally a part of the Kusto Query Language and may be modified without being considered as a breaking language change.
Note
- To set request properties using T-SQL, see Set request properties.
- To set request properties using the Kusto client libraries, see Kusto Data ClientRequestProperties class.
set
OptionName [=
OptionValue]
[!INCLUDE syntax-conventions-note]
Name | Type | Required | Description |
---|---|---|---|
OptionName | string |
✔️ | The name of the request property. |
OptionValue | ✔️ | The value of the request property. |
set querytrace;
Events | take 100