restore a sql database from .bak file but don't have permissions
The db users/logins were deleted from a db living on a SQL AWS RDS instance, so I can no longer access this db. I wanted to restore this db from a .bak file which would bring back the users/logins. I can't restore because I lack permissions.
I have admin access to the RDS instance, i need to create a login on a specific db so I can perform functions.
SQLDatabasesMicrosoft SQL ServerAWS
Last Comment
Mark Wills
8/22/2022 - Mon
Pawan Kumar
Why dont we create logins which are not there as restore is not possible.
szadroga
ASKER
I can create logins, but that specific db is not listed so I cant grant permissions against that db. I am using SSMS, and the login I use did have admin permissions to that db, but the login got deleted.
Dustin Saunders
Do you have the exact error or a screenshot of the error that you are getting trying to do the restore?
its fine if I cant restore from .bak file but do you know how to, at the very least add a login to this db?
Mark Wills
Not really... In SQL Server parlance, You add logins to access the server, you add users to access the DB. I am pretty sure AWS / RDS has its own procedures. It has been ages since I played with RDS.