--- title: "DefaultScript 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: - "DefaultScript Element" apilocation: - "http://schemas.microsoft.com/analysisservices/2003/engine" apitype: "Schema" applies_to: - "SQL Server 2016 Preview" f1_keywords: - "DefaultScript" helpviewer_keywords: - "DefaultScript element" ms.assetid: 60716e63-2d64-4774-9ac9-253efe612fa5 caps.latest.revision: 34 author: "Minewiskan" ms.author: "owend" manager: "erikre" --- # DefaultScript Element (ASSL) Identifies the default [MdxScript](../../../analysis-services/scripting/objects/mdxscript-element-assl.md) element in the [MdxScripts](../../../analysis-services/scripting/collections/mdxscripts-element-assl.md) collection. ## Syntax ```xml ... ... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |Data type and length|Boolean| |Default value|**True**| |Cardinality|0-1: Optional element that can occur once and only once.| ## Element Relationships |Relationship|Element| |------------------|-------------| |Parent elements|[MdxScript](../../../analysis-services/scripting/objects/mdxscript-element-assl.md)| |Child elements|None| ## Remarks Setting the value of **DefaultScript** to **True** for one script sets the value of **DefaultScript** to **False** for all other **MdxScript** elements in the **MdxScripts** collection. The element that corresponds to the parent of **DefaultScript** in the Analysis Management Objects (AMO) object model is . ## See Also [Properties (ASSL)](../../../analysis-services/scripting/properties/properties-assl.md)