首页 > 数据库技术 > 详细

SQL SERVER-修改TempDB路径

时间:2021-05-08 16:34:03      阅读:20      评论:0      收藏:0      [点我收藏+]

--查看tempdb文件信息
use tempdb
go
sp_helpfile
go

 


--修改路径
use master
go
Alter database tempdb modify file (name = tempdev, filename = ‘F:\TEMPDB\tempdb.mdf‘)
go
Alter database tempdb modify file (name = templog, filename = ‘F:\TEMPDB\templog.ldf‘)
go
Alter database tempdb modify file (name = temp2, filename = ‘F:\TEMPDB\tempdb_mssql_2.mdf‘)
go
Alter database tempdb modify file (name = temp3, filename = ‘F:\TEMPDB\tempdb_mssql_3.mdf‘)
go
Alter database tempdb modify file (name = temp4, filename = ‘F:\TEMPDB\tempdb_mssql_4.mdf‘)
go
Alter database tempdb modify file (name = temp5, filename = ‘F:\TEMPDB\tempdb_mssql_5.mdf‘)
go
Alter database tempdb modify file (name = temp6, filename = ‘F:\TEMPDB\tempdb_mssql_6.mdf‘)
go
Alter database tempdb modify file (name = temp7, filename = ‘F:\TEMPDB\tempdb_mssql_7.mdf‘)
go
Alter database tempdb modify file (name = temp8, filename = ‘F:\TEMPDB\tempdb_mssql_8.mdf‘)
go

 


--运行完上述命令后,还需要重启实例,方能生效。

SQL SERVER-修改TempDB路径

原文:https://www.cnblogs.com/wulongy/p/14744613.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!