EXEC sp_attach_single_file_db DBName,'C:\\DB_Data.mdf'--该片段来自于http://www.codesnippet.cn/detail/0912201411214.html
来源: http://www.codesnippet.cn/detail/0912201411214.html