Good day! I'm going to configure the creation of backups through a script in SQL 2008 R2, the script is there, but I have a question. Here is the script
BACKUP DATABASE [mybase1] TO DISK = N'c:\sqlbackup\mybase1.bak' WITH INIT, NOUNLOAD, NAME = N'MyBase1 Backup', NOSKIP, STATS = 10, NOFORMAT;
'c:\sqlbackup\mybase1.bak'
is the name of the backup file, how can I make the current date appear before the extension (without a colon) !? For example c:\sqlbackup\mybase270112.bak
And if you can, then sample code!