How To Move SQL Server Database Files To A Different Location

preview_player
Показать описание
If you ever run into the problem where your database files are getting too large and you want to move the database files to a different drive with more storage then this tutorial will answer your question.

► Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------------
☕ Venmo: @Jie-Jenn

► Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

#SQLServer #MSSQLServer #MoveDatabaseFile
Рекомендации по теме
Комментарии
Автор

This worked nicely! Thanks for the great video!

danielrooein
Автор

Very helpful, thank you.
For SQLServer Express the file permissions on a Windows computer, the userid is ‘NT SERVICE\MSSQL$SQLEXPRESS’
SQL Server Management Studio needs be opened as “Run as administrator” to allow the database to be attached.

ledickin
Автор

And in which cases we need to use Detach/Attache or its always can be replaced by just moving db to offline? If I need also change the file name I also can use this method?

MyLubimishBabyLove
Автор

Great Video, I'm stuck at file permissions, I can see that MSSQLSERVER has permission for the original file location, but I can't find that userid when granting permission in the new folder. I have also tried CPT South Austrailias 'NT SERVICE\MSSQL$SQLEXPRESS' which can't be found either. any help greatly appreciated.

jamescorbett
Автор

Nice vid ! 🎉 but a question if youre going to change the location of the database file that is inside a filegroup? is it the same way just modify file name and filepath directly?

michelleurbano
Автор

Is there a manual way of doing that without typing in the commands

sai
Автор

Is this applicable for a database transfer to an external drive? Thank you

the_daftkid