Post-installation tasks for Amazon Relational Database Service (RDS)
- Last UpdatedApr 28, 2026
- 1 minute read
After installing PI SQL Data Access Server RTQP, complete the following steps in order to grant the appropriate permissions on the SQL Server and assign the db_AFQueryEngine role to the user.
-
Connect to the Amazon RDS instance as the domain user that ran the setup.
-
Create a login and a user for the AFQueryEngine group:
CREATE LOGIN [<domain>\AFQueryEngine] FROM WINDOWS WITH DEFAULT_DATABASE = [<AFDatabaseName>]
USE [<AFDatabaseName>]
CREATE USER [<domain>\AFQueryEngine] FOR LOGIN [<domain>\AFQueryEngine]
-
Add the db_AFQueryEngine role to the user:
USE [<AFDatabaseName>]
ALTER ROLE db_AFQueryEngine ADD Member [<domain>\AFQueryEngine]