Hi all!
I've been searching for a while, maybe you can help:
I need an SQL Server Agent job to rename a file with the original filename + yesterday's date.
I figrued out that I should use an Operating System (CmdExec) job step like this
but I'm stuck with getting yesterday's date or passing a parameter to the command (instead of %date%).
I don't want to activate xp_cmdshell for this task.
Thanks for any recommendations!
Anne
I've been searching for a while, maybe you can help:
I need an SQL Server Agent job to rename a file with the original filename + yesterday's date.
I figrued out that I should use an Operating System (CmdExec) job step like this
Code:
ren test.txt test-%date%.txt
I don't want to activate xp_cmdshell for this task.
Thanks for any recommendations!
Anne