Move Database Files
Applies to: SQL Server
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.
In This Section
Topic | Description |
---|---|
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. |
See Also
ALTER DATABASE (Transact-SQL)
CREATE DATABASE (SQL Server Transact-SQL)
Database Detach and Attach (SQL Server)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho