sql server数据库备份语句
2016-06-16 14:35
155 查看
DECLARE @strPath NVARCHAR(200)
set @strPath = convert(NVARCHAR(19),getdate(),120)
set @strPath = REPLACE(@strPath, ':' , '.')
set @strPath = '备份路径'+'CopyBSS'+@strPath + '.bak'
backup database 数据库名 to disk = @strPath
with noinit , nounload , noskip , STATS = 10, NOFORMAT
set @strPath = convert(NVARCHAR(19),getdate(),120)
set @strPath = REPLACE(@strPath, ':' , '.')
set @strPath = '备份路径'+'CopyBSS'+@strPath + '.bak'
backup database 数据库名 to disk = @strPath
with noinit , nounload , noskip , STATS = 10, NOFORMAT
相关文章推荐
- SQL递归查询(with as)
- 8 步搭建 Node.js + MongoDB 项目的自动化持续集成
- Redis 缓存 + Spring 的集成示例
- MYSQL 体系结构图-LRU FREELIST FLUSH LIST
- MYSQL 体系结构图-unzip_LRU
- mysql 主主复制(双主复制)+ 配置KEEPALIVED实现热备
- MySQL隔离级别
- 数据库设计三大范式
- MYSQL 体系结构图-LRU
- MySQL Error Code: 1175
- sql语句-ALTER TABLE
- jdbc连接远程数据库进行操作
- 从各大软件公司笔试压轴题学习SQL语句
- mongodb入门
- centOS下整合Tomcat和redis
- MYSQL中常用数据类型介绍
- [转]Oracle Form 触发器执行顺序
- mysql中修改表字段名/字段长度/字段类型详解
- 【Oracle】PLSQL Developer如何连接Oracle
- 关于 Redis 访问安全性的问题