Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
bharath63
Starting Member
14 Posts |
Posted - 2008-12-18 : 11:58:16
|
| Hi guys, I want to write a backup script where the filename contains todays date.ThanksBHARATH |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2008-12-18 : 13:32:51
|
| Do you have a specific question?Perhaps this will help:declare @destination varchar(200)set @destination = 'c:\my_backups\MyDB_' + convert(varchar, getdate(), 112)backup database myDB to disk = @DestinationBe One with the OptimizerTG |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
|
|
bharath63
Starting Member
14 Posts |
Posted - 2008-12-18 : 16:07:01
|
| Thanks Guys.. TG script must fix my problem for time being.. I was facing issue with maintenance task.. so will be scheduling the job with script :-)BHARATH |
 |
|
|
|
|
|