Settings XML File

SQL Enlight Setting XML file can be used with the command line tool and build tasks to override some of the settings that are not available as parameters to the tool or task.

Settings File Structure

The settings XML file contains four sections under the main ApplicationSettings element, but in the scope of the command line tool and build tasks usage, only the AnalysisSettings are relevant.

XML
1<ApplicationSettings>
2  <AnalysisSettings>...</AnalysisSettings>
3  ...
4</ApplicationSettings/>

AnalysisSettings

XML
 1<ApplicationSettings>
 2  <AnalysisSettings>
 3    <!-- Configurations that have significance for the command line tool or build tasks analsyis -->
 4    <DisableConnectionContext>false</DisableConnectionContext>
 5    <LoadFullContext>false</LoadFullContext>
 6    <DisableScriptValidationOnServer>true</DisableScriptValidationOnServer>
 7    <!-- 
 8      0:- ParseOnly = 0, 1: Noexec
 9    -->
10    <OnServerScriptValidationType>0</OnServerScriptValidationType>
11    <TemplateFile>C:\Users\Username\AppData\Roaming\Ubitsoft\SQL Enlight\1.9\Templates\Analysis\AnalysisTemplate.xml</TemplateFile>
12    <ShowAnalysisRuleDisabledErrorOnNoSqlConnection>false</ShowAnalysisRuleDisabledErrorOnNoSqlConnection>
13    <DisableSyntaxErrorsInAnalysisResults>false</DisableSyntaxErrorsInAnalysisResults>
14
15
16    <!-- The following settings have no effect in command line tool or build tasks analsyis -->
17    <DisableConnectionContextCaching>false</DisableConnectionContextCaching>
18    <DefaultAnalysisConnectionString>Data Source=TESTSQL\SQL2014;Initial Catalog=AdventureWorks;Integrated Security=True</DefaultAnalysisConnectionString>
19    <EnableInstantCodeAnalysis>true</EnableInstantCodeAnalysis>
20    <InstantCodeAnalysisScriptMaxSize>5120</InstantCodeAnalysisScriptMaxSize>
21    <RequireConfirmStandardRulesUpgrade>true</RequireConfirmStandardRulesUpgrade>
22    <PendingVersionTemplateUpgrade>false</PendingVersionTemplateUpgrade>
23    <ShowToolbarInVisualStudioAndSsms>true</ShowToolbarInVisualStudioAndSsms>
24    <DisableDiskCache>false</DisableDiskCache>
25    <CachePath>C:\Users\Username\AppData\Roaming\Ubitsoft\SQL Enlight\1.9\Cache</CachePath>
26  </AnalysisSettings>
27</ApplicationSettings/>
SQL Enlight Settings file

The settings file of the current user can be found at this path:

%APPDATA%\Ubitsoft\SQL Enlight\1.9\settings.xml

It can be used a source for crating a custom settings XML file, which to be used with the command line tool or build tasks.