SQL backup 6.5 Ability to choose "existing database file bug
Andrew Hodge
Posts: 132
Was interested in the new 6.5 feature
Ability to choose "existing database file location" as well as the SQL Backup suggested defaults.
This doesnt seem to work correctly for me though.
See the screenshots showing what happens when I select Original Database data directory. The primary file directory seems to be incorrect with the DATA directory getting transposed into the filename? if I switch back it gets even worse with the log file name getting overwritten to.
Original Database file location
[/img]
Log file name overwrittern
[/img]
Ability to choose "existing database file location" as well as the SQL Backup suggested defaults.
This doesnt seem to work correctly for me though.
See the screenshots showing what happens when I select Original Database data directory. The primary file directory seems to be incorrect with the DATA directory getting transposed into the filename? if I switch back it gets even worse with the log file name getting overwritten to.
Original Database file location
[/img]
Log file name overwrittern
[/img]
Comments
Thank you for pointing this out, we will take a look into it. Switching to Create new database and back to Overwrite existing should get you into a workable state when this does happen.
Out of interest, when you select a database to be overwritten by the restore what do you think should appear for the file locations by default?
SQL Server Data Directory.
Database file locations from the backup file.
Database file locations from the database being overwritten.
Thanks,
Redgate Foundry
When selecting Original Database Data Directory it is correctly changing the Transaction Logs path to F:\Program Files\Microsoft SQL Server\....
The problem is the Primary database file path and name (screenshot 2), it changes it to
Path
E:\Program Files\Microsoft SQL Server\MSSQL10.INSTC\MSSQL
File Name
DATA (this is totally wrong and is the end of the folder path)
It should read
Path
E:\Program Files\Microsoft SQL Server\MSSQL10.INSTC\MSSQL\DATA
File name
BGInfo.MDF
To answer Matthew's question, I would expect the existing file pathnames to be used when overwritting a database, which again has been a point of pain for me.
When selecting SQL Server Data Directory it should default to the SQL Server settings (specifically it should pick up the log location).
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup\SQLDataRoot]
=E:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL
This appears to be missing the final folder \DATA.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\DefaultLog]
F:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA
When chossing original database directory it should be
Database file locations from the database being overwritten.
When I select the create new database radio button the drop down (orginal database data directory) works correctly ie the paths and filenames are correct.
The bug only appears to be when having the overwrite database radio button selected.
If you would like to download this it should fix the issue with the Combo box when Overwrite existing database is selected.
Let me know how you get on.
Thanks,
Redgate Foundry
Tested this and working as expected now. Tried it on a few different configurations (2005 & 2008, default instance and named instance) and all ok.
Just curious that the fix appears to be in the GUI but the download also updates the agent? ie with the 6.5.0.75 GUI the funcationality works as expected even on 6.5.0.73 agents? Any reason for this.
Many thanks
Andy
It's just that the version number of the Server Components has now been incremented to match the GUI. The GUI however notices that the Server Components build number is older than the GUI and prompts for an upgrade.
Thanks,
Redgate Foundry
The fix in this version was just to correct the behaviour when the File locations drop down box was used when Overwrite existing database was selected.
The issue with SQL Backup not reading the correct registry keys to obtain the SQL Server default data and log locations is a bigger one which we will hopefully fix in the next major release.
Thanks,
Redgate Foundry
I'm currently running 6.5.1.9 and I can't use that exe to fix this bug.
What are my options?
Thanks
The fix to correct the behaviour when the File locations drop down box was used with Overwrite existing database being selected is also in 6.5.1.9.
Could you email support@red-gate.com with details of the issue you are currently seeing and screenshots if possible?
Thanks,
Redgate Foundry