--查看文件逻辑名
SELECT name FROM sys.database_files
ALTER DATABASE [本身数据库名称]
MODIFY FILE ( NAME = [原错误数据库名称], NEWNAME = [新正确数据库名称] )
--修改文件-逻辑名
ALTER DATABASE [zhitou]
MODIFY FILE ( NAME = [sh-xuesheying], NEWNAME = [zhitou] )
ALTER DATABASE [zhitou]
MODIFY FILE ( NAME = [sh-xuesheying_log], NEWNAME = [zhitou_log] )
时间: 2024-10-10 04:39:21