Closed tivivi63 closed 6 months ago
Installing scripts take care of that I believe... One of the variables, SQLLOGDIR I think, is not available in older versions. So if you script the job from a newer it won't work.
As stated in the documentation, both JOBNAME
and STEPNAME
tokens are not availlable until SQL Server 2016 ๐
(JOBNAME) | The name of the job. This token is only available on SQL Server 2016 and above. (STEPNAME) | The name of the step. This token is only available on SQL Server 2016 and above.
Hello,
Getting following message when executing whichever Ola's job using
JOBNAME
variable inAdvanced>Output file
parameter, like$(ESCAPE_SQUOTE(SQLLOGDIR))\$(ESCAPE_SQUOTE(JOBNAME))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(DATE))_$(ESCAPE_SQUOTE(TIME)).txt
) inCommandLog Cleanup
job.Both are executed on mly laptop (though outputs differ regarding OS version ๐) but I do have the same behaviour on virtualized servers (e.g Windows Server 2016). Really looks like related to SQL version, not Windows Server build.
Fails:
Works:
Version of the script Version: 2022-12-03 17:23:44
Thanks for sharing this tremendous tool ๐