| Author |
Message |
dklein9930
Joined: 02 Mar 2011 Posts: 12
|
Posted: Wed Jan 02, 2013 4:45 pm Post subject: Backup failed on disabled sql login. |
|
|
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 |
|
 |
petey
Joined: 24 Apr 2005 Posts: 2215
|
Posted: Wed Jan 02, 2013 5:02 pm Post subject: |
|
|
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 |
|
 |
|
|
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