2 minute readApplies to: v4

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 tile to query a database other than the Data Warehouse.

For more information about the SQL tile configuration such as checking that the connection string is correct see How to use the SQL tile.

The connection to the Data Warehouse is configured as part of the Squared Up setup process, so these permissions are typically already in place. See How to configure the Data Warehouse connection

Configuring access to the Operations Manager (or other) database

For queries on other databases, such as the Operations Manager database, or indeed any other database, the Squared Up application pool account needs to be given the db_datareader role on the database, as described below:

  1. 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, domain\mywebserver$)
  2. Open SQL Server Management Studio.

  3. 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.

  4. Right-click on the relevant account (as described above) and select Properties.

  5. Click on User Mapping.

  6. Tick the database you wish to give access to, for example OperationsManager, under Users mapped to this login.

  7. In the bottom panel tick db_datareader.

    User Mapping

  8. Click OK.

How to use the SQL tile

Troubleshooting the SQL tile

How to use the SQL tile in a perspective

Squared Up Ltd. (c) 2018Report an issue with this article