Using a Password file with sqb2mtf command line
pamozer
Posts: 16 New member
Can I use a password file with sqb2mtf command? Or can I only use a password when the backup is encrypted. HEre is what I am trying to do.
SQB2MTF "c:\FULL_DB024_KareoMaintenance_20140120_113510_encr.sqb" "c:\FULL_DB024_KareoMaintenance_20140120_113510_encr.bak" "Password=FILE:C:\REDGATE\Backup.txt"
SQB2MTF "c:\FULL_DB024_KareoMaintenance_20140120_113510_encr.sqb" "c:\FULL_DB024_KareoMaintenance_20140120_113510_encr.bak" "Password=FILE:C:\REDGATE\Backup.txt"
Comments
The password is used to decrypt an encrypted sqb file during the conversion.
Product Support
Red Gate Software
I tried both sqb2mtf.exe and SqbConverter.exe and was unsuccessful.
If you want to convert a file from the command line you could use the convert command from the command line.
SQLBackupC.exe -I {instance name} -SQL "CONVERT 'C:\Backups\pubs.sqb' TO 'C:\Backups\pubs.bak' WITH PASSWORD = 'FILE:C:\mypasswords\password.txt'"
http://documentation.red-gate.com/displ ... RTPASSWORD
Product Support
Red Gate Software
Product Support
Red Gate Software
SQL Backup v7.6.0.29
Syntax error: 'FILE:C:\redgate\dcr.txt' after '='
Password file does not exist: C:\redgate\dcr.txt
(2 row(s) affected)
name value
exitcode 850
sqlerrorcode 0
Is the file name and path correct?
It could also be permissions to the folder.
The logon account of the SQL Backup Agent have rights to the folder?
Product Support
Red Gate Software
I pretty much copied your command and it worked, I only changed the database name and the disk path.
The main thing it is compalining about is:
Password file does not exist: C:\redgate\dcr.txt
Try giving the log on account of the SQL Backup Agent explicit rights to the folder.
Product Support
Red Gate Software