时间:2021-07-01 10:21:17 帮助过:4人阅读
--查看物理位置
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‘);
--重启数据库
SQL Server tempdb 数据库位置迁移
标签:ast dev 位置 rom tab sel mod log physical