Command Line Tool – AnalysisContext

Generate and output the context information of given database to a file.

This topic contains the following sections:

Usage
1Enlight analysisContext
2      --outputFile:<output file> 
3      --connectionString:<connectionString> 
4    | --server:<servername> --database:<databaseName> [ --username:<username>  --password:<password> ]

Parameters

Parameter

Description

–connectionString

SQL connection string the target context database.

–username

Username for accessing the database.

–password

The password of the provided user for accessing the database.

–database

Target database name.

–server

Target SQL Server name and instance name.

–help

Display this help screen.

–version

Display version information.

Examples

Generate analysis template using SQL Connection string:

1Enlight analysisContext 
2        --connectionString=Server=tcp:MySqlAzure.database.windows.net,1433;Database=MySqlAzureDatabase;UID=testuser@mycompany.onmicrosoft.com;PWD=12345; 
3        --outputFile=database-context.xml

Generate analysis template using SQL Authentication:

1Enlight analysisContext 
2        --outputFile=database-context.xml 
3        --server=tcp:MySqlAzure.database.windows.net,1433 
4        --database=MyDatabaseOnSqlAzure 
5        --username=testuser@mycompany.onmicrosoft.com
6        --password=12345

Generate analysis template using Windows Authentication:

1Enlight analysisContext                                  
2        --outputFile="c:my database contextsdatabase-context.xml"  
3        --database=mydatabase 
4        --server=mysqlserversql01

See Also

Other Resources