--查看文件逻辑名
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] )