各位大侠,请帮我具体分析一下
当我用sp_attach_single_file_db 时
提示:
Server: Msg 945, Level 14, State 2, Line 1
Database 'dbname' cannot be opened because some of the files could not be activated.
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'dbname'. CREATE DATABASE is aborted
我又建一个同名数据库,然后把原数据文件覆盖上去,再一次sp_attach_single_file_db 时
提示:
server:msg 5173,level 16,state 1,line 1
cannot associate files with different databases
server:msg 5105,level 16,state 1,line 1
device activation error,the physical file name 'd:\mssql7\data\dbname' may be incorrect
Server: Msg 945, Level 14, State 2, Line 1
Database 'dbname' cannot be opened because some of the files could not be activated.
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'dbname'. CREATE DATABASE is aborted
为什么?
难道我的数据库坏了吗?
|