--附加MDF数据库
2 | CREATE DATABASE DB_NAME |
3 |
4 | ON (FILENAME = 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\DBName.MDF' ) |
5 | FOR ATTACH_REBUILD_LOG ; |
6 | GO |
--附加MDF数据库
2 | CREATE DATABASE DB_NAME |
3 |
4 | ON (FILENAME = 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\DBName.MDF' ) |
5 | FOR ATTACH_REBUILD_LOG ; |
6 | GO |