我正在考虑在VPS上安装Server版。
我的理解是,在Express Edition的局限性中,有一些涉及到便利备份的特性。
有人能解释一下为这个配置执行每日备份的一些选项吗?是否有一个直接的方式,或我需要购买更多的软件?
(如果这个问题看上去很傻的话,很抱歉。我是一个软件开发人员,而不是一个数据库或管理员。)
发布于 2019-12-19 21:42:25
你最好的选择是用奥拉·哈伦的公用设施
从常见问题
How do I get started with the SQL Server Maintenance Solution on SQL Server Express?
SQL Server Express has no SQL Server Agent. Therefore, the execution of the stored procedures must be scheduled by using cmd files and Windows Scheduled Tasks. Follow these steps.
Download MaintenanceSolution.sql.
Execute MaintenanceSolution.sql. This script creates the stored procedures that you need.
Create cmd files to execute the stored procedures; for example:
sqlcmd -E -S .\SQLEXPRESS -d master -Q "EXECUTE dbo.DatabaseBackup @Databases = 'USER_DATABASES', @Directory = N'C:\Backup', @BackupType = 'FULL'" -b -o C:\Log\DatabaseBackup.txt
In Windows Scheduled Tasks, create tasks to call the cmd files.
Schedule the tasks.
Start the tasks and verify that they are completing successfully.另一种选择是使用DBATools Powershell模块并创建和调度powershell脚本。
发布于 2019-12-19 19:44:34
速成版没有提供的东西之一是SQL代理,它允许任务的调度。备份的工作方式与其他版本相同,只是不能安排它们自动运行。这与Express和其他版本有很大的不同。
https://dba.stackexchange.com/questions/255989
复制相似问题