Hi,Long story short - I need to backup the log on my listener server (using High Availability).I am trying to create a tsql script that i can run from my primary on my listener to clear the log file.I setup a read only linked server and tested :[code="sql"]select * from openquery([sqlnodea\sql2014a],'select @@servername')[/code]This works fine.So when I attempt this my syntax is wrong:[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 = 10GO')[/code]I get the red lines under everything..tried all kinds of ways to get this to run. I can get the above to work by itslef, but when I try to add it to open query I get the red lines.
↧