How to back-up a database automatically?
Posted on 2008-10-13
I would like to automatically back-up my database daily at 12:00AM. I would like the back-up files to be in "C:\backups" and the file name should be "databaseName_YYYYMMDD.bak" where "YYYYMMDD" is the year, month and day. For example, the following is what we should see in "backups":
and so on...
I don't mind writing the script in a batch file and then use the task scheduler to run it at 12:00AM daily.