我尝试恢复数据库备份。原始数据库具有复制设置。
当我使用以下内容进行恢复时:
exec('RESTORE DATABASE [mydatabase] FROM DISK = ''' + @filename + ''', NOUNLOAD, REPLACE, STATS = 10')
它会抛出错误
Database was restored, however an error was encountered while replication was being restored/removed. The database has been left offline. See the topic MSSQL_ENG003165 in SQL Server Books Online.
RESTORE could not start database
RESTORE DATABASE is terminating abnormally.
最糟糕的是什么。在此之后,我在其他3台服务器上的实际复制已脱机......
所以我想要实现的是我要恢复的数据库,但根本没有任何复制。只是数据库表,存储过程等。
我尝试恢复的数据库来自PUBLISHER。