Issue with MIRROR/VERIFY/PASSWORD combination
CorrinHarris
Posts: 12
Hi - I may just need help with my syntax - when using MIRROR/VERIFY/PASSWORD combination - I get an 'invalid password' error...below is a list of tests which all work except the last one - any ideas? Thanks all!
Oct 31 2012 12:12PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET"
Oct 31 2012 12:13PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',SINGLERESULTSET"
Oct 31 2012 12:14PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,VERIFY,SINGLERESULTSET"
Oct 31 2012 12:15PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,SINGLERESULTSET"
Oct 31 2012 12:15PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,SINGLERESULTSET"
Oct 31 2012 12:16PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',SINGLERESULTSET"
Oct 31 2012 12:17PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,VERIFY,SINGLERESULTSET"
Oct 31 2012 12:18PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET"
Msg 2787, Level 16, State 1, Procedure up_take_backup_redgate, Line 160
Invalid format specification: '%
Processed 232 pages for database 'TESTDATABASE', file 'TESTDATABASE' on file 1.
Processed 1 pages for database 'TESTDATABASE', file 'TESTDATABASE_log' on file 1.
BACKUP DATABASE successfully processed 233 pages in 0.028 seconds (64.871 MB/sec).
Verifying files:
\\TESTSERVER\BACKUP FOLDER\TESTDATABASE\TESTDATABASE_20121031_12_18_FULL.SQB
Error 710: Wrong password entered.
Validation of all backup files failed.
SQL Backup exit code: 710'.
Oct 31 2012 12:12PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET"
Oct 31 2012 12:13PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',SINGLERESULTSET"
Oct 31 2012 12:14PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,VERIFY,SINGLERESULTSET"
Oct 31 2012 12:15PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,COMPRESSION=1,SINGLERESULTSET"
Oct 31 2012 12:15PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,SINGLERESULTSET"
Oct 31 2012 12:16PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',SINGLERESULTSET"
Oct 31 2012 12:17PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,VERIFY,SINGLERESULTSET"
Oct 31 2012 12:18PM
-SQL "BACKUP DATABASE [TESTDATABASE] to DISK='\\TESTSERVER\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='t3stPA88WORD',COMPRESSION=1,MIRRORFILE='\\TESTSERVER\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET"
Msg 2787, Level 16, State 1, Procedure up_take_backup_redgate, Line 160
Invalid format specification: '%
Processed 232 pages for database 'TESTDATABASE', file 'TESTDATABASE' on file 1.
Processed 1 pages for database 'TESTDATABASE', file 'TESTDATABASE_log' on file 1.
BACKUP DATABASE successfully processed 233 pages in 0.028 seconds (64.871 MB/sec).
Verifying files:
\\TESTSERVER\BACKUP FOLDER\TESTDATABASE\TESTDATABASE_20121031_12_18_FULL.SQB
Error 710: Wrong password entered.
Validation of all backup files failed.
SQL Backup exit code: 710'.
Comments
Do you know what this error refers to? Something in your 'up_take_backup_redgate' procedure?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Invalid format specification: '%
Processed 232 pages for database 'TESTDATABASE', file 'TESTDATABASE' on file 1.
Processed 1 pages for database 'TESTDATABASE', file 'TESTDATABASE_log' on file 1.
BACKUP DATABASE successfully processed 233 pages in 0.028 seconds (64.871 MB/sec).
Verifying files:
\\TESTSERVER\BACKUP FOLDER\TESTDATABASE\TESTDATABASE_20121031_12_18_FULL.SQB
Error 710: Wrong password entered.
Validation of all backup files failed.
SQL Backup exit code: 710'.
Could you please post the contents of the log file for the backup that raised the error?
Thanks.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Message returned in results set
Invalid format specification: '%
Processed 272 pages for database 'testdatabase', file 'testdatabase' on file 1.
Processed 2 pages for database 'testdatabase', file 'testdatabase_log' on file 1.
BACKUP DATABASE successfully processed 274 pages in 0.057 seconds (37.443 MB/sec).
Verifying files:
\\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
Error 710: Wrong password entered.
Validation of all backup files failed.
SQL Backup exit code: 710'.
Contents of logfile
SQL Backup log file 6.1.0.16
-SQL "BACKUP DATABASE [testdatabase] to DISK='\\testserver\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='XXXXXXXXXX',COMPRESSION=1,MIRRORFILE='\\testserver\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET "
ERRORS AND WARNINGS
01/11/2012 14:49:45:
01/11/2012 14:49:45: Verifying files:
01/11/2012 14:49:45: \\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:45:
01/11/2012 14:49:45: Error 710: Wrong password entered.
01/11/2012 14:49:45: Validation of all backup files failed.
PROCESSES COMPLETED SUCCESSFULLY
01/11/2012 14:49:44: Backing up testdatabase (full database) to:
01/11/2012 14:49:44: \\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:44: \\testserver\BACKUP FOLDER\MIRROR\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:45: BACKUP DATABASE [testdatabase] TO VIRTUAL_DEVICE = 'SQLBACKUP_43C9AC2E-3546-4F3A-8B6D-110A58E4B9DB' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576, NAME = N'Database (testdatabase), 01/11/2012 14:49:44', DESCRIPTION = N'Backup on 01/11/2012 14:49:44 Server: testserver Database: testdatabase', FORMAT
01/11/2012 14:49:45: Database size : 8.250 MB
01/11/2012 14:49:45: Compressed data size: 342.500 KB
01/11/2012 14:49:45: Compression rate : 95.95%
01/11/2012 14:49:45: Processed 272 pages for database 'testdatabase', file 'testdatabase' on file 1.
01/11/2012 14:49:45: Processed 2 pages for database 'testdatabase', file 'testdatabase_log' on file 1.
01/11/2012 14:49:45: BACKUP DATABASE successfully processed 274 pages in 0.057 seconds (37.443 MB/sec).
Message returned in results set
Invalid format specification: '%
Processed 272 pages for database 'testdatabase', file 'testdatabase' on file 1.
Processed 2 pages for database 'testdatabase', file 'testdatabase_log' on file 1.
BACKUP DATABASE successfully processed 274 pages in 0.057 seconds (37.443 MB/sec).
Verifying files:
\\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
Error 710: Wrong password entered.
Validation of all backup files failed.
SQL Backup exit code: 710'.
Contents of logfile
SQL Backup log file 6.1.0.16
-SQL "BACKUP DATABASE [testdatabase] to DISK='\\testserver\BACKUP FOLDER\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB' WITH INIT,THREADPRIORITY=2,PASSWORD='XXXXXXXXXX',COMPRESSION=1,MIRRORFILE='\\testserver\BACKUP FOLDER\MIRROR\<DATABASE>\<DATABASE>_<DATETIME YYYYMMDD_HH_NN>_<TYPE>.SQB',VERIFY,SINGLERESULTSET "
ERRORS AND WARNINGS
01/11/2012 14:49:45:
01/11/2012 14:49:45: Verifying files:
01/11/2012 14:49:45: \\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:45:
01/11/2012 14:49:45: Error 710: Wrong password entered.
01/11/2012 14:49:45: Validation of all backup files failed.
PROCESSES COMPLETED SUCCESSFULLY
01/11/2012 14:49:44: Backing up testdatabase (full database) to:
01/11/2012 14:49:44: \\testserver\BACKUP FOLDER\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:44: \\testserver\BACKUP FOLDER\MIRROR\testdatabase\testdatabase_20121101_14_49_FULL.SQB
01/11/2012 14:49:45: BACKUP DATABASE [testdatabase] TO VIRTUAL_DEVICE = 'SQLBACKUP_43C9AC2E-3546-4F3A-8B6D-110A58E4B9DB' WITH BUFFERCOUNT = 6, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576, NAME = N'Database (testdatabase), 01/11/2012 14:49:44', DESCRIPTION = N'Backup on 01/11/2012 14:49:44 Server: testserver Database: testdatabase', FORMAT
01/11/2012 14:49:45: Database size : 8.250 MB
01/11/2012 14:49:45: Compressed data size: 342.500 KB
01/11/2012 14:49:45: Compression rate : 95.95%
01/11/2012 14:49:45: Processed 272 pages for database 'testdatabase', file 'testdatabase' on file 1.
01/11/2012 14:49:45: Processed 2 pages for database 'testdatabase', file 'testdatabase_log' on file 1.
01/11/2012 14:49:45: BACKUP DATABASE successfully processed 274 pages in 0.057 seconds (37.443 MB/sec).
If you have an active maintenance contract, you could upgrade to version 7 instead.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
We are just in the process of upgrading to 6.5.1.9 and looking at upgrading to 7.2 in the future...