SQL Server Management Studio Move Database Files

preview_player
Показать описание
This video is about how to move the database file from a location to another location. Example, my C drive running out of space and I would like to move the database to D drive.

1) Find the database files location
2) Detach the database
3) Move the files to other location
4) Attach the database

Thanks for watching :)
Рекомендации по теме
Комментарии
Автор

Thanks. Very helpful. My database permissions were NT Service\MSSQLSERVER on the original location so I set it to that account (full permission) on the destination database and log files. Worked perfectly.

gravestonemyth
Автор

Thanks for the quick reminder on moving a database in SQL!

jackaitken
Автор

Really good video.very very helpful. thank you so much for sharing this. please share all topics videos if you have then those will be helpful for every dba learners... :)

mohamdalmhde
Автор

Database show as "Read Only" after moving and re-attaching. How can I remove the "remove only"? Thanks!

amyyang
Автор

Where is the logfile. During attach. you selected only datafile

emmanuelachaleke