Move SQL Server 2008 database files to a new folder location

前端 未结 5 675
长情又很酷
长情又很酷 2020-12-12 11:32

Logical Name

  • my_Data
  • my_Log

Path:

  • C:\\Program Files\\Microsoft SQL Server\\MSSQL10.MSSQLS
5条回答
  •  失恋的感觉
    2020-12-12 12:18

    This is a complete procedure to transfer database and logins from an istance to a new one, scripting logins and relocating datafile and log files on the destination. Everything using metascripts.

    http://zaboilab.com/sql-server-toolbox/massive-database-migration-between-sql-server-instances-the-complete-procedure

    Sorry for the off-site procedure but scripts are very long. You have to:
    - Script logins with original SID and HASHED password
    - Create script to backup database using metascripts
    - Create script to restore database passing relocate parameters using again metascripts
    - Run the generated scripts on source and destination instance.
    See details and download scripts following the link above.

提交回复
热议问题