Invalid object name 'master.dbo.MSreplication_options' when restoring DB
-
01-11-2019 - |
Question
I've tried Googling for an answer to this but have got nowhere.
I have one SQL Server instance whose replication is set up to be a publisher and a distributor of FooDatabase
. I have a second instance whose replication is set up to be a subscriber of FooDatabase
on the first instance. Replication updates work. What I want to do is backup the subscription FooDatabase
, delete it on the subscriber instance, and restore the backup. However, when I do this and try to restore the backup, I get the following error:
Restore failed for Server 'DAVEG1525-162'. (Microsoft.SqlServer.SmoExtended)
System.Data.SqlClient.SqlError: Invalid object name 'master.dbo.MSreplication_options'. (Microsoft.SqlServer.Smo)
I've checked and dbo.MSreplication_options
does exist as a system table in the master
database on the production instance, but not on the subscription instance.
My questions are: if it doesn't exist on the subscription instance, why is it being included on the backup made from the subscription instance of SQL Server? and how can I fix this problem?
No correct solution