Hi,I am using H/A SQL2014A.I am looking for a way to backup my listener from my main server.I have tried creating a linked server with readonly intent. But when I can't seem to get my syntax to work:[code="sql"]select * from openquery([SQLNODEB\SQL2014A],'BACKUP LOG [pec_prod] TO DISK = N''nul'' WITH NOFORMAT, INIT, NAME = N''pec_prod-Full Database Backup'', SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10')[/code]The above gives the error:[code="sql"]Msg 7357, Level 16, State 2, Line 46Cannot process the object "BACKUP LOG [pec_prod] TO DISK = N'nul' WITH NOFORMAT, INIT, NAME = N'pec_prod-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10". The OLE DB provider "SQLNCLI11" for linked server "SQLNODEB\SQL2014A" indicates that either the object has no columns or the current user does not have permissions on that object.[/code]I am open to any suggestions on how to execute the backup log from the primary. I need to be able to execute the backup log from script. I tried it in an SSIS package but it gave me the "THe Database is currently in High Avail and inaccessible". So, I'm trying to get it to run as a job..but willing to change it to whatever works.
↧