I am putting together a SQL Heartbeat checker which outputs a series of pre-defined data to a log file like so
Outputfile=”c:HeartbeatStatus.log”
I know this is a really basic question but I want to put in the current date after Status and have tried:
Outputfile=”c:HeartbeatStatus” & Date & “.log”
It didn’t work so tried single quotes but cannot get the file to export, can you help on the syntax please?