#1 Global Leader in Data Protection & Ransomware Recovery

Restore Fails for Database with Consecutive Backslash Characters in File Path

KB ID: 2178
Product: Veeam Backup & Replication
Version: All
Published: 2016-10-12
Last Modified: 2020-08-13
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

Veeam Explorer for Microsoft SQL Server reports the error:

Inconsistent database metadata. See the log for details.

Cause

One or more database file paths contained multiple consecutive backslash characters when the SQL server was backed up.

Solution

Clarifying Issue

This issue cannot be discovered in the GUI of SQL Server Management Studio, because it splits the full file path onto folder path and filename.

To check that the database file paths contain multiple consecutive backslash characters, open SQL Server Management Studio and run the following query against the database reported by Veeam:

SELECT * FROM Sys.Database_files

The query should return a list of database files and their paths (check the "physical_name" column). Below you may see the example of the incorrect path:

D:\Database Files\\DatabaseExample.mdf

In the logs the issue appears with the following trace:

10 (5524) Access to directory granted
10 (5524) Getting file size: C:\VeeamFLR\SQL2008_90f828a2\Volume1\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\\TEST.mdf...
10 (5524) Error: The filename, directory name, or volume label syntax is incorrect

This issue could appear in the following cases:

  • A script used for database creation contains a double backslash in the "Path" variable.
  • The file path for the additional database files was entered with a doubled backslash.

Deploying Hotfix

NOTE: The hotfix is compatible only with Veeam Backup & Replication 10. Customers running earlier versions are advised to upgrade to version 10 first and then install the private fix.

In Veeam Backup & Replication 10, we implemented a mechanism that verifies database paths and automatically replaces a doubled backslash with a single backslash to avoid any issues during a restore.

There is a hotfix required to implement this mechanism for Veeam B&R 10.0.0.4461:

  1. Download the hotfix.
  2. Check the current version of Veeam Backup & Replication. It must be 10.0.0.4461.
  3. Make sure that no jobs are running, close the console, and stop all Veeam services.
  4. Unpack the archive to a TEMP folder
  5. Replace the original files located in the folder below with the hotfix files:
  • C:\Program Files\Veeam\Backup and Replication\Explorers\SQL\
NOTE: MAKE A COPY OF THE ORIGINAL FILES PRIOR TO REPLACING THEM

More Information

DOWNLOAD HOTFIX


MD5 45FEC1F1B3A4C10E0808F02B06457763
SHA-1 B24D071F412AF2C903B3559C799826506F31AD08
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.