Hot Posts: ING Direct Savings $25 Promo Code ~ FREE Mac Style Backgrounds Download ~ $100 DIRECTV referral bonus 

Improving Life Through Technology...
Home • Account • Search • Advertise
follow me

Backup and Schedule SQLExpress 2008 Database for FREE

There are plenty of programs you can purchase that will allow you to schedule backups for SQLExpress 2008. Only issue with those is that they often set you back $50 - $100. However, there are FREE alternatives...

If you only have 1 or 2 DBs to backup and don't mind backing them up daily then there is a free program called SQL backup and FTP. As I mentioned above, there are limitations with this. It only allows a maximum of 2 DBs to be backed up and you don't have any scheduling flexibility, it's daily or it's nothing. Those factors made this unsuitable for my needs.

Enter the 2nd FREE option...Automating a T-SQL script with windows task scheduler.

This is a simple 5 step process to scheduled backups whenever you want.

  1. Run the T-SQL stored procedure against your DB
  2. Create a folder to store the scripts on the computer running the database. (i.e. BackupScripts)
  3. Create a file called "db_backup.sql" in the "BackupScripts" folder containing the following sql:

    exec expressmaint @database = '$(DB)', @optype = 'DB', @backupfldr = '$(BACKUPFOLDER)', @reportfldr = 'C:\DB_Backups\Reports', @verify = 1, @dbretainunit = '$(DBRETAINUNIT)', @dbretainval = '$(DBRETAINVAL)', @rptretainunit = 'copies', @rptretainval = 2, @report = 1

    Where 'C:\DB_Backups\Reports' is equal to the folder you want the report stored in

  4. The fourth step is to create another file called "db_backup.bat" that will be scheduled to run the script file above.

    sqlcmd -S .\SQLExpress -i"C:\Scripts\db_backup.sql" -v DB="Blog" -v BACKUPFOLDER="C:\DB_Backups" -v DBRETAINUNIT="days" -v DBRETAINVAL="1"

    Where "C:\Scripts\db_backup.sql" is the located of your script file and "Blog" is the db name, and "C:\DB_Backups" is where the backups will be stored.

  5. The fifth and final step is to simply setup a scheduled task for the "db_backup.bat" file
The great thing about this option is that it's free and you can schedule it to run when ever you want unlike the free program. I tested this using SQLExpress 2008 but this should also work on SQLExpress 2005.

Trackbacks :
http://justinacton.com/blog/track.aspx?id=39
Percocet. - Pharmacokinetics of percocet. Percocet online.
Trackback By Percocet. At 2/11/2010 4:30 AM
Ativan. - Ativan. Order ativan fast local delivery wholesale price.
Trackback By Where do you put ativan gel. At 2/11/2010 9:52 AM
Alprazolam. - Alprazolam in mexico. I need alprazolam. Alprazolam intoxicated driving. Alprazolam.
Trackback By Alprazolam. At 2/11/2010 6:55 PM
Valium to activan conversion table. - Valium 10.
Trackback By Vicoden valium. At 2/12/2010 11:59 PM
Where can i buy adderall online. - Buy adderall. Buy adderall no prescription.
Trackback By Buy adderall. At 2/13/2010 1:58 AM
Buy tramadol in the united states. - Buy tramadol in the united states. Buy tramadol the lowest prices chtiblog com. Buy tramadol. Buy tramadol with american express.
Trackback By Buy online cheap and fast tramadol. At 2/13/2010 6:01 AM
Drug soma cause any sexual side effects. - Soma cannabis. Soma. Soma drug test. Soma without rx. Soma sonic music. Tramadol soma zoloft prozac onlineprescription.md.
Trackback By Cheap soma. At 2/13/2010 8:23 AM
Http pills.viptemplates.com p buy soma. - Soma soma buy soma soma online. Buy soma online. Buy soma cheap. Buy soma watson brand online 150 tablets. Buy watson brand soma.
Trackback By Buy soma bloghoster. At 2/13/2010 9:58 PM
Order viagra online. - Buy viagra online. Cheap generic viagra. Viagra for women. Viagra.
Trackback By Order viagra. At 2/14/2010 8:28 AM
Meridia 15mg. - Buy meridia. Meridia side effects. Meridia. Meridia online consultation. Meridia diet pill.
Trackback By Meridia mexico. At 2/15/2010 2:58 AM
Percocet. - Percocet. Percocet withdrawal symptoms. Percocet effects.
Trackback By Cheap percocet. At 2/16/2010 12:19 AM
Correct dosage amoxicillin 500 mg. - Amoxicillin rx 657. Amoxicillin. Amoxicillin with no prescription.
Trackback By Amoxicillin price. At 2/16/2010 8:01 AM
Hydrocodone. - Hydrocodone apap. Hydrocodone guaifenesin. Buy hydrocodone on the internet. Hydrocodone apap 5 500. Hydrocodone. Buy hydrocodone with no rx. How long does hydrocodone stay in your system. Buy hydrocodone without a prescription. Hydroco ...
Trackback By Buy hydrocodone. At 2/16/2010 8:06 AM
Buy tramadol. - Cheap tramadol cod buy cheap cod online tramadol. Activado agcode buy tramadol icqwebmail info. Buy tramadol. Buy online cheap and fast tramadol. Tramadol great buy.
Trackback By Buy cheap tramadol tramadol mg quick delivery cod. At 2/16/2010 11:57 AM
How long does percocet 7.5 stay in your system. - Percocet.
Trackback By Long term use of percocet. At 2/16/2010 9:42 PM
Buy clonazepam online no prescription. - Clonazepam. Clonazepam for low back pain.
Trackback By Clonazepam. At 2/16/2010 10:49 PM
Soma. - Soma without prescription. Effects of soma. Soma. Watson soma. Drug soma cause any sexual side effects. Drug soma. Suicide with soma. Rise against soma tickets.
Trackback By Generic soma. At 2/17/2010 7:35 AM
Tramadol. - Cheapest tramadol.
Trackback By Tramadol. At 2/17/2010 1:11 PM
Phentermine to buy no prescription. - Buy phentermine online. Buy phentermine.
Trackback By Buy phentermine online no prescription. At 2/18/2010 1:01 AM
Buy xanax precrition needed. - Buy xanax. Buy xanax online. Search results buy xanax online. Buy cheap generic xanax. Buy xanax online no rx. Buy xanax precrition needed. Buy cheap xanax without prescription.
Trackback By Buy no xanax online prescription all on one site. At 2/18/2010 10:03 AM
Buy diazepam valium. - Buy diazepam without prescription. Buy diazepam no prescription. Buy diazepam. Book buy diazepam guest online site. Where to buy diazepam.
Trackback By Buy diazepam mexican. At 2/18/2010 10:42 PM
Oxycontin withdrawal. - Oxycontin addiction. Oxycontin.
Trackback By Oxycontin settlement. At 2/19/2010 11:08 AM
Alprazolam. - Alprazolam from mexico. Your online pharmacy alprazolam anxiety. Alprazolam no prescription. Alprazolam intoxicated driving. Alprazolam. Cheap 2mg alprazolam. Alprazolam in mexico.
Trackback By Alprazolam side effects. At 2/21/2010 4:49 PM
Ambien overdose. - Wellbutrin together with ambien suicide. Generic ambien. Generic ambien available. Long term ambien. Ambien cr.
Trackback By Ambien. At 2/22/2010 7:42 PM
Buy oxycontin. - Buy oxycontin. Where to buy oxycontin.
Trackback By Buy oxycontin online. At 2/24/2010 5:11 PM
Buy adderall xr online. - Buy adderall. Buying adderall online pharmacy.
Trackback By Buy adderall online. At 2/25/2010 5:07 PM
Oxycodone apap. - Buy oxycodone online. Delirium elderly oxycodone. Oxycodone.
Trackback By Oxycodone. At 2/26/2010 9:39 PM
Where can i buy ambien for next day delivery. - Buy ambien without a prescription. Ambien buy. Buy ambien 12.5 mgm overnight mail md consultation. Buy ambien with a discount at leading pharmacy. Buy ambien cr. Ambien cr buy online no rx. Buy ambien 1 ...
Trackback By Buy ambien online no prescription. At 3/3/2010 5:34 AM
Buy phentermine online. - Buy cheap phentermine. Buy phentermine online. Buying phentermine. Buy phentermine.
Trackback By Buy phentermine online. At 3/14/2010 12:42 AM
quick weight loss - If you are looking for quick weight loss. Try our free trial!
Trackback By quick weight loss At 4/14/2010 7:43 PM
2b Allergic Bactrim Reaction - Bactrim Septra
Trackback By Bactrim Acne At 5/11/2010 1:47 PM
times components sun society business - societies president extinctions running issue impact beginning
Trackback By times components sun society business At 6/9/2010 5:51 PM
Please logon or register to comment.