Avatar of szadroga
szadroga
Flag for United States of America asked on

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

Avatar of undefined
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?

Is your Instance in mixed mode?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
szadroga

ASKER
when I try to restore from a file (.bak) I get the following

from-file.pdf


when i try to restore from database i get the following

from-db.pdf
ASKER CERTIFIED SOLUTION
Mark Wills

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
szadroga

ASKER
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.

Read up on RDS at : http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAM.html goto security...
AWS Documentation » Amazon Relational Database Service (RDS) » User Guide » Security in Amazon RDS » Authentication and Access Control for Amazon RDS
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.