Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Move Database Files

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

In SQL Server, you can move system and user databases by specifying the new file location in the FILENAME clause of the ALTER DATABASE statement. Data, log, and full-text catalog files can be moved in this way. This may be useful in the following situations:

  • Failure recovery. For example, the database is in suspect mode or has shut down, because of a hardware failure.

  • Planned relocation.

  • Relocation for scheduled disk maintenance.



Move User Databases

Describes the procedures for moving user database files and full-text catalog files to a new location.

Move System Databases

Describes the procedures for moving system database files to a new location.

Community Additions

© 2015 Microsoft