Use the SQL Server Management Studio tool to create a read-only user account with execute permissions, for EM.
About this task
Procedure
- In the Microsoft SQL ServerĀ® Management Studio tool, log in to the server with a full access account using SQL Server authentication.
- Expand the logged in SQL Server database.
- Expand the Security section, and then right-click on Logins.
- Select New Login... from the list.
-
Enter a unique and appropriate name for the account in the Login
name field. For example, create a user account with the name
mem_readonly
. - Select the SQL Server Authentication radio button. Enter a strong password in the Confirm Password boxes. Clear the Enforce password expiration check box, and, if still selected, clear the User must change password at next login check box.
- Select User Mapping from the list on the left of the page.
- In the Users mapped to this login: table, select the JCIHistorianDB database to add a user to.
-
In the Database role membership table, select
db_datareader
and click OK.