Sqlserver 还原分区数据库的sql脚本

USE master;
GO

RESTORE DATABASE [DataBaseName02]
FROM DISK = 'G:/DBFile/DBback/DataBaseName.bak'
WITH REPLACE,
MOVE 'DataBaseName'
TO 'G:/DBFile/DataBaseFile/DataBaseName02.mdf',
MOVE 'DataBaseName_log'
TO 'G:/DBFile/DataBaseFile/DataBaseName02_log.ldf',
MOVE 'DataBaseName_DataS'
TO 'G:/DBFile/DataBaseFile/DataBaseName02_DataS.mdf',
MOVE 'DataBaseName_DataSIndex'
TO 'G:/DBFile/DataBaseFile/DataBaseName02_DataSIndex.mdf';

GO

RESTORE

Sqlserver 还原分区数据库的sql脚本最先出现在Python成神之路

版权声明:
作者:congcong
链接:https://www.techfm.club/p/28395.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>