使用SQL实现MSSQL数据库备份

1、数据库完整备份

backup database 数据库名 to disk ='备份文件保存目录' with noformat

2、数据库差异备份

backup database 数据库名 to disk ='备份文件保存目录' with differential

3、数据库日志备份

backup log 数据库日志名 to disk ='备份文件保存目录' with noformat