We have recently migrated to a new server where first the database was restored and then the replication has been setup. The same Merge agent works with the existing server but not with the new one.Below is the error which pops up when the merge agent is run:
The schema script 'Subscribed_Userdb99ffc3_18.sch' could not be propagated to the subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201001) Get help: http://help/MSSQL_REPL-2147201001 Could not drop object 'dbo.Subscribed_Users_Temp_Storage' because it is referenced by a FOREIGN KEY constraint. (Source: MSSQLServer, Error number: 3726) Get help: http://help/3726
When I am trying to drop the table it shows up table is being referenced by a foreign key.When i am trying to disable the foreign key it shows
Msg 3733, Level 16, State 2, Line 1 Constraint 'FK_Subscribed_User_Paypal_Details_Subscribed_Users_Temp_Storage' does not belong to table 'subscribed_users_temp_storage'. Msg 3727, Level 16, State 0, Line 1
And when I checked the schema of the table it shows the foreign key is there.
Does that means that foreign key is an orphan one,and if so then what is the possible solution to it. Could not drop constraint. See previous errors.