您的位置:首页 > 数据库

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: