Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i backup w/ dynamic name?

Status
Not open for further replies.

GoSooJJ

Programmer
Feb 24, 2001
76
US
I'm trying to backup sql data as 05192003.bak for today and tomorrow backup file would be 05202003.bak. Is this possible in sql server 2000?

Thank you.
 
If you set up SQL to automatically backup your database on a schedule using SQL Agent, it will force a date increment in the backup file name. So the Northwind database would have backups named:

Northwind_030519200.bck
Northwind_030518200.bck
Northwind_030517200.bck
Northwind_030516200.bck

You need to tell the schedule when to backup the database and how many backups to keep. Also, you shouldn't name your backup files with .bak, they could get flagged as temporary by other Windows utlilities that look specifically for .bak and .tmp files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top