I create a job for taking backups in MSSQL Server Management Studio and run backup script periodically. I also want to add date and time as the following format:
2020.10.16_18.00.00
I tried some methods, ut I think I have to use special format. How can I get the date as above without using SP, etc. just using date-time methods?
I tried this but not exactly gives the format I want.
select convert(varchar, getdate(), 120)