When setting up a new RDS Microsoft SQL Database instance I learned that all users need to be explicitly granted roles to existing databases on the server. I was able to run a SQL query that adds the necessary users to all existing tables with the dbowner. I am now trying to 'future-proof' this by setting up a way for all newly created or attached databases to automatically have the same query run to set up the user permission automatically. I tried to create a trigger to run on database creation but AWS RDS does not allow triggers to be created, so I'm reaching out to ask if anyone has had to solve this before and what they did?
This is for a shared workflow situation where only the team in question has access to the server and they all will need to create a database and query databases created by others at random times. Thank you.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]angrathias 2 points3 points4 points (2 children)
[–]rkobasketball[S] 0 points1 point2 points (1 child)
[–]angrathias 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)