Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:59:18+00:00 2026-06-04T10:59:18+00:00

I have created a database in SQL Server 2008 Express Edition. Can I write

  • 0

I have created a database in SQL Server 2008 Express Edition. Can I write a program in VB.net express to take a daily backup at a specified time? What code do I need to write?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:59:19+00:00Added an answer on June 4, 2026 at 10:59 am

    It’s probably overkill to write a VB.NET application for this. You’d need to write a Windows Service or something similar to run on an infinite loop, and figure out the code to take a database backup.

    Since it’s express, of course there’s no SQL Server Agent to run scheduled jobs. However, you can do the same thing by scheduling a job from the operating system. Here’s a good article on how to accomplish this: http://www.fmsinc.com/free/NewTips/SQL/SQLServerExpressDatabase/Automated_Backup.asp. Quote from the article:

    • Create a new backup device using the wizard (expand Server Objects => New Backup Device).
    • Right click on the new backup device and select the database that you wish to backup.
    • Select the backup type (most often this is “Full”).
    • Choose a name for the job. Insert a description if you would like.
    • Click the Add button to add a Device Destination (this is where you would like the backup .bak output file to be placed).
    • Click Ok. The backup device is now setup. Repeat steps 3-7 for each database that you wish to backup.
    • Create a batch file using the following syntax (this is used to execute the backup device). A syntax example is below (remember to save this file with a “BAT” file extension):
    sqlcmd -S MYSERVER\OFFICESERVERS -E -Q "BACKUP DATABASE MASTER TO TEST"
    
    ..where “MYSERVER” is the name of the SQL Server machine.
    ..where “OFFICESERVERS” is the name of the SQL Server.
    ..where “Test” is the name of the backup job.
    ..where “MASTER” is the name of the database.
    
    • Finally, open the Microsoft Windows Scheduler and assign the batch file created above to a scheduled event. Set the event to run at the point you wish. For more information on the Microsoft Windows Scheduler and its useful functionality, please perform a search of the web using your preferred search engine or consult your Microsoft Windows documentation.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database that I have created using SQL Server Developer 2008. I
I have a database called MyDB in a Microsoft SQL Server 2008 Express instance
I have a database (SQL server express 2008) which has a column that is
I've created a locally attached SQL Server 2008 Express for an ASP.NET MVC application
First a little introduction. We have an SQL Server Express 2008 database, which schema
I have created some new databases in SQL Server 2008 Express (10.0.1600.22) and I
Tables have been created in our SQL Server 2008 R2 database on a local server,
I have a simple database table (SQL Server 2008 R2 Express), which has a
I have added Full Text Search to my sql server 2008 express database and
I have a Sql Server 2008 Express database file that's currently being used by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.