Red Gate forums :: View topic - Backup failed on disabled sql login.
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Backup 6
SQL Backup 6 forum

Backup failed on disabled sql login.

Search in SQL Backup 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
dklein9930



Joined: 02 Mar 2011
Posts: 13

PostPosted: Wed Jan 02, 2013 4:45 pm    Post subject: Backup failed on disabled sql login. Reply with quote

Greetings,

I recently disabled an old sql login, used by a former employee, now a database backup is failing with the following message:

SQL error 18470: Login failed for user ''. Reason: The account is disabled.

Where is redgate using this account, as it is not specified in the backup script? And, how can I switch this user account out for a domain service account?

Thanks,
DK
Back to top
View user's profile Send private message
petey



Joined: 24 Apr 2005
Posts: 2299

PostPosted: Wed Jan 02, 2013 5:02 pm    Post subject: Reply with quote

By default, SQL Backup uses the SQL Backup Agent service startup account to perform all backups and restores. If you require SQL Backup to use a SQL login to perform the operations, you use the sqbsetlogin extended stored procedure to specify the login and password e.g.

Code:
EXEC master..sqbsetlogin '<login>', '<password>'

To revert to using the SQL Backup Agent service startup account, use sqbsetlogin with empty parameters e.g.

Code:
EXEC master..sqbsetlogin ', ''

_________________
Peter Yeoh
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 7
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group