Operation Practice notes for daily automatic database backup under Windows server2012r2+sql Server Express version

Source: Internet
Author: User
Tags sql server express

Recently, due to the server problem, a database migration. Migration found SQL Server Express version is free, can meet my needs, abandoned the original version of SQL Server R2 directly used.

Database has been built, the data also migrated, the Business Server is also updated database connection, the database is automatically backed up, the problem also comes:SQL Server Agent service can not start! after one hours of research, it was discovered that the Express version could not use the agent service.

Microsoft is also very specific, also wrote a free express version of SQL Server How to do free automatic backup.

Original URL: https://support.microsoft.com/en-us/help/2019698/ How-to-schedule-and-automate-backups-of-sql-server-databases-in-sql-se

Website: https://support.microsoft.com/zh-cn/help/2019698/ How-to-schedule-and-automate-backups-of-sql-server-databases-in-sql-se

My server is Windows SERVER2012R2.

Through practice, the article is basically correct, where step B cannot be executed correctly. After research, the statements that I finally successfully use are

Sqlcmd-q "EXEC sp_backupdatabases @backupLocation = ' D:\SQLBackups\ ', @databaseName = ' database name you want to back up ', @BackupType = ' F '"

Operation Practice notes for daily automatic database backup under Windows server2012r2+sql Server Express version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.