拷贝服务器的数据库文件,然后在本地附加数据库附加数据库USE [master]GOCREATE DATABASE [MySQLDB] ON ( FILENAME = 'D:\workspace\TestDB.mdf' ),( FILENAME = 'D:\workspace\TestDB_BG.ndf' ),( FILENAME = 'D:\workspace\TestDB_log.ldf' )FOR ATTACH