OS
WindowsSoftware
AllError message
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '[username]'.
No database file found for 'MSSQL\(local)\XXX'
Database "XXX" not found
Backup missed.
Cause
This happens when the user or password used for the SQL-server access is incorrect or the user does not have backup rights.The MS SQL-backup works as follows:
- The backup task is started by the scheduler service, the backup process will start using the Windows-authentication provided.
- The process will then start a SQL client, which logs onto the SQL-server with the provided SQL-username and matching password.
- The SQL client will request the SQL-server to export the selected databases to the temporary directory.
- Here it will compare the export with the data present on the backup server and then upload the difference to the backup server.
Solution
In the MSSQL-backupset a SQL-username and password have to be provided, and optional a Windows log on as well for the temporary directory.- Open the software
- Go to the backupsets
- Choose the correct backupset
- Under the 'General' tab supply the Windows authentication and MSSQL server authentication
- Click 'OK'
- Save the settings / Close the software
- Start the MSSQL Management Studio
- Login using the same credentials used in the backup software
- In case this failes you will need to use the sa user to gain enough rights to make changes.
- Select the user in the Management Studio ([SERVER]\Security\Logins)
- Selecteer the user mapping option
- Check here if the user has the db_backupoperator parameter set for the databases that need to be backupped.
-
This rights apply to each user and each database individually!
-
- Check the box in front of the db_backupoperator parameter for each database that should be included in the backup.
- Apply the changes