use master
go
alter database tempdb modify file (Name=tempdev, filename='D:\SQLServer\tempdb.mdf')
go
alter database tempdb modify file (Name=templog, filename='D:\SQLServer\templog.ldf')
go