标签:ast dev 位置 rom tab sel mod log physical
--查看物理位置
SELECT
name, physical_name
FROM sys.master_files
WHERE database_id = DB_ID(‘tempdb‘);
--修改路径
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = ‘D:\DataBaseNew\tempdb.mdf‘);
ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME = ‘D:\DataBaseNew\templog.ldf‘);
--重启数据库
标签:ast dev 位置 rom tab sel mod log physical
原文地址:http://www.cnblogs.com/twzy/p/6437796.html