sql server问题
我写了如下恢复语句
RESTORE DATABASE ryxx1
FROM DISK = N'E:\yycx\tyxx.dat'
WITH recovery,REPLACE
如果数据库的名字和原数据库名相同的话,那么恢复正常,若数据库的名字和原数据库名不相同的话,那么报错:
Server: Msg 3101, Level 16, State 2, Line 1
Database in use. The system administrator must have exclusive use of the database to run the restore operation.
Server: Msg 3013, Level 16, State 1, Line 1
Backup or restore operation terminating abnormally.
我应该怎样解决,急
问题点数:20、回复次数:1Top
1 楼zonelive(peter)回复于 2004-08-04 14:03:57 得分 20
RESTORE DATABASE [hl] FROM DISK = N'E:\hl' WITH FILE = 1, NOUNLOAD , STATS = 10, RECOVERY , REPLACETop




