Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

how to move tempdb one drive to another drive and one server to another server ?

$
0
0

Hi...........


Good morining....1

in interview.....

how to move tempdb,MSDB, Model and Master.... from one locaation to another location..? in production environment..?

I said answer for tempdb,msdb, and model..


4 stpes :

1. take  the db into single user mode

2 .  ALTER DATABASE TEMPDB MODIFY FILE(NAME='TEMPDB','FILENAME='NEW-PATH')

3.Copy the tempdb mdf file manually from  original place to new place.

4. then i will take to db online.

5. i will check the db file location by using 

                           SELECT NAME, PHYSICAL_NAME FROM SYS.DATABSES_FILES.

6. i wil check the db consistensy by using  DBBC CHECKDB.

PLs  sugest me me....I dnt knwweather it is corect or not...........

pls drop your...valuble sugestions.....

greetings in advance..............

Thank you

Vijay







Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>