Hello experts,I'd like to setup a job that will take a log backup, and then shrink the log file for certain specific databases. Now, the only problem here is that the log backup supposedly runs every 1 hour, and there is a full backup job that starts around 11:00 pm, and I've seen cases that since the database is getting backed up the shrink can't run because of the backup, and the job fails. I know I can change the step to succeed even on the job failure, and come out of it as success, but I do not want to go that route. Infact, I wanted to loop into a script that will first check if the backup is running, and if it is running print, a friendly message, and exit out of the loop without doing anything, but if it is not running I need the log shrink to run, and then end the job.In case if anyone has done something similar please let me know.Regards,Fievel
↧