You will need to configure access if you wish to use the SQL tile to query a database.
For more information about the SQL tile configuration such as checking that the connection string is correct see How to use the SQL tile.
Configuring permissions in SQL Server Management Studio
If the SquaredUp server is domain joined, then the SquaredUp application pool account needs to be given the db_datareader role in SQL Server Management Studio for the database you wish to query.
The SquaredUp application pool account needs to be given the db_datareader role on the database, as described below:
First identify the user account that needs to be given permission.
SquaredUp uses the application pool identity account to retrieve data for the SQL tile, NOT the account with which you log on to SquaredUp. By default the application pool identity is set to NetworkService, but you may have changed this. For more information see How to check and modify the Squaredup application pool identity.
You may need to RDP to the server where SquaredUp is installed, so you will need to open port 3389 as described in the Microsoft article: Cannot connect remotely to a VM because RDP port is not enabled in NSG, and then log in using the credentials specified when creating the VM.
- In IIS, click on Application Pools.
- Right-click on SquaredUpv5 and select Advanced Settings.
Under Process Model, you will see Identity.
- 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 SquaredUp 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 SquaredUp is NOT installed on the same server as the database you are accessing then add the relevant role for the SquaredUp 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 (under Users mapped to this login).
- In the bottom panel tick db_datareader.
- Click OK.