How to configure access to a database for use with the SQL tile
You may need to configure access if you wish to use the SQL plugin to query a database other than the Data Warehouse. The connection to the Data Warehouse is configured just after installation, so these permissions are probably already in place. See How to configure the Data Warehouse connection
Configuring access to the OperationsManager (or other) database
For queries on other databases, such as the OperationsManager database, or indeed any other database, the Squared Up application pool account needs to be given the _apmdatareader, _dbdatareader roles on the database, as described below:
First identify the user account that needs to be given permission.
Squared Up uses the application pool identity account to retrieve data, NOT the account with which you log on to Squared Up. By default the application pool identity is set to NetworkService, but you may have have changed this. See How to check and modify the application pool identity and make a note of the application pool identity account for use in the next steps:
- If the application pool identity is running as a custom account then add the relevant roles for this custom account.
- If the application pool is set to NETWORK SERVICE and Squared Up is installed on the same server as the database you are accessing then add the relevant role for the NT AUTHORITY\NETWORK SERVICE account.
- If the application pool is set to NETWORK SERVICE and Squared Up is NOT installed on the same server as the database you are accessing then add the relevant role for the Squared Up server’s AD computer account (for example,
Open SQL Server Management Studio.
Expand Security and then Logins. Look for a login with the same name as the application pool identity, as noted above, if one doesn’t exist you will need to create one.
Right click on the relevant account (as described above) and select Properties.
Click on User Mapping.
Tick the database you wish to give access to, for example
OperationsManager, under Users mapped to this login.
In the bottom panel tick _apmdatareader, _dbdatareader.
If you are still experiencing problems please send your Squared Up log files
c:\inetpub\wwwroot\SquaredUpv2\Transient\Log\ a screenshot of the SQL tile configuration and a copy of the SQL query text and to [email protected]