From EMC Networker Module for Microsoft (NMM) version 9.1, EMC introduces the new feature “SQL Flat File Recovery”, no exciting, but really a helpful feature for the DBA and Backup admin.
Before EMC Networker NMM version 9.1, the MS SQL database only can be recovered to the SQL database, either to the original database or a different database. Since SQL database and Networker are usually managed by different teams, restoring directly to the database increases the internal communication between different teams to get the task done correctly. By introducing “SQL Flat File Recovery”, Networker admin can recover the database flat file to the desired location and DBA can recover the flat file to SQL database after that at any time.
NMM 9.1 can be used with Networker server version 8.2.3 or later with some limitations stated in the administrator guide.
There are 2 ways to use this feature:
[1] The NMM SSMS plugin GUI
There is a new option “restore backup as files” available to restore the flat file. Select the option and choose the target folder to restore the flat files.
[2] The command nsrsqlrc
I personally like the command line, which can be put into other script to run multiple restore if required. A basic SQL flat file restore command line can be as below:
- nsrsqlrc.exe -s networkerserver.test.com -c client.test.com -t “20/04/2017 00:00:00” -a “FLAT_FILE_RECOVERY=TRUE” -a “FLAT_FILE_RECOVERY_DIR=C:\restoretest” “MSSQL$DBINSTANCE01:DBTEST”
Below 2 variables are required for flat file recover.
- -a “FLAT_FILE_RECOVERY=TRUE” (enable the flat file recovery)
- -a “FLAT_FILE_RECOVERY_DIR=C:\restoretest” (specify the target folder for the flat files)
I have tested above command line with success and flat file restore to the destination folder straightaway.