Comments
10 comments
-
I'm not overly familiar with RDS sadly but does it work if you precreate the temporary database in RDS?
-
I did in the second scenario and I gave the redgate login db_owner rights. Unfortunately as you see in the log snippet it starts with dropping users first (including itself). After that it can't access the database anymore. In our on premises server the redgate user is sysadmin but that role is not available in RDS instances
-
Yeah ok that sounds about right - you'd need to have a pre-created database and specify it in the build parameters with -TemporaryDatabase so that it doesn't get dropped/recreated every time.
-
So why is this happening when I do that:[13:07:44][Step 1/2] VERBOSE: Dropping users[13:07:44][Step 1/2] WARNING: The error 'The server principal "our_redgate_user" is not able to access the database "redgate_temp" under[13:07:44][Step 1/2] the current security context.' occurred when executing the following SQL:
-
I did in the second scenario and I gave the redgate login db_owner rights. Unfortunately as you see in the log snippet it starts with dropping users first (including itself). After that it can't access the database anymore. In our on premises server the redgate user is sysadmin but that role is not available in an RDS instance.
-
I did in the second scenario and I gave the redgate login db_owner rights. Unfortunately as you see in the log snippet it starts with dropping users first (including itself). After that it can't access the database anymore. In our on premises server the redgate user is sysadmin but that role is not availabl
-
I did in the second scenario and I gave the redgate login db_owner rights. Unfortunately as you see in the log snippet it starts with dropping users first (including itself). After that it can't access the database anymore. In our on premises server the redgate user is sysadmin but that role is not availabl
-
I did in the second scenario and I gave the redgate login db_owner rights. Unfortunately as you see in the log snippet it starts with dropping users first (including itself). After that it can't access the database anymore. In our on premises server the redgate user is sysadmin but that role is not available in an RDS instance.
-
I wonder if it just doesn't work for the temporary database, and RDS is supported for deployment targets only - I'll try to find out.
-
I've been working with the automation plugin for over two years now and with RDS instances little over a year since we migrated away from our own servers. So if there's anything I can do to assist, let me know.
Add comment
Please sign in to leave a comment.
We are using Sql Change Automation in our Teamcity pipeline to deploy changes to our AWS RDS instance. Currently we have an on-prem virtual pc running Sql server to build the temporary database on. We want to get rid of this virtual pc as part of moving to AWS completely. I have been trying to use the RDS instance itself to build the scratch database on but so far without success.
Without specifying a temporary database name I get this error:
the securable needed for this ALTER ANY DATABASE is not available on RDS
When put in a temporary database name I get this error:
So it dropped itself and lost access to the temp database. On RDS the sysadmin role is not available
Is there anyone who got this scenario working?