Solved

Credentials for SQL DB backup (VeeamBackup DB)


Userlevel 3

Hello,

 

I need to create a SQL DB backup for VeeamBackup DB (VBR 10). I’m using MS SQL Server Management Studio with Windows Authentication however the DB is not accessible with this user, do I need to use SQL Server Authentication with th “sa” user? if yes, I don’t have the password, is there a default password? if no, can I try to reset this password without problems?

 

Thanks for your help,

 

Omar De Souza.

icon

Best answer by Mildur 4 August 2021, 22:45

View original

4 comments

Userlevel 7
Badge +3

You can use this guide from Microsoft to create a admin account for you to access the database. Or reset the sa password.

This query should help you with that in mssql single user mode:

CREATE LOGIN TempLogin WITH PASSWORD = '************';  
ALTER SERVER ROLE sysadmin ADD MEMBER TempLogin;

 

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/connect-to-sql-server-when-system-administrators-are-locked-out?view=sql-server-ver15

Userlevel 7
Badge +6

@omar.desouza - depending if your SQL Server is setup up with Mixed Authentication mode - Windows & SQL or just Windows or SQL then you will need an account that has the rights to log in.

Typically when you install Veeam the account you use for the Services is also created in SQL too with access to the DBs and Server Admin.  If you cannot access the SQL with the account then you will need to find another way to log in with either SA or another account with rights.

Userlevel 7
Badge +6

You can use this guide from Microsoft to create a admin account for you too access the database. Or reset the sa password.

 

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/connect-to-sql-server-when-system-administrators-are-locked-out?view=sql-server-ver15

Yes this is a very good article too.  Good mention @Mildur 

Userlevel 3

Thanks guys for your help!

Comment