Modify the SQL Server database name, modify the logical file name, modify the database physical file name (tips)

1.SQL Server modify the database name: the right to modify the database directly select.

2. Modify the logical file name: attribute modification.

3. Modify the database physical file name:

  (1) database backup, restore, you can directly modify the name or revert to another database.

  (2) separating the database, the database directly modify the physical file name, then an additional, specified time directly attached to the modified file to the physical database.

  Note: Use sql2016, SSMS17 version, if attached directly modify the physical database files, database files can not be loaded in the details, may be a new version of the bug (this feature may also be removed), other versions not tested, this situation only You can use the backup to restore to modify the physical file name .

 

 

Guess you like

Origin www.cnblogs.com/cuihongyu3503319/p/12306055.html