Hi all,
How can i copy the log file and make it run everytimne log gets back up. I have the server on STD edition so have to copy manually.
the back up is done by maitainance plan.
and back up of log is like
test_tlog_200605241600.TRN
I am trying to run command like bellow but not able to make it work
EXEC master..xp_cmdshell 'copy Y \\actualserver\f$\logs\test\test_tlog_'+ +getdate()+'.TRN'
\\standbyserver\d$\MSSQL\BACKUP\LOG\test_LOG.TRN'
it happens every 30 min so how can i copy this files.
Thanks
How can i copy the log file and make it run everytimne log gets back up. I have the server on STD edition so have to copy manually.
the back up is done by maitainance plan.
and back up of log is like
test_tlog_200605241600.TRN
I am trying to run command like bellow but not able to make it work
EXEC master..xp_cmdshell 'copy Y \\actualserver\f$\logs\test\test_tlog_'+ +getdate()+'.TRN'
\\standbyserver\d$\MSSQL\BACKUP\LOG\test_LOG.TRN'
it happens every 30 min so how can i copy this files.
Thanks