Quantcast
Channel: Cracking the Vault
Viewing all articles
Browse latest Browse all 167

Invalid object name 'dbo.sysmergesubscriptions'

$
0
0

Trying to Disable Workgroup Replication returned this error in the ADMS Console Log

17/12/2012 9:43:09 AM Connectivity.Application.VaultManager.ServiceException: Invalid object name 'dbo.sysmergesubscriptions'. ---> System.Data.SqlClient.SqlException: Invalid object name 'dbo.sysmergesubscriptions'.
   at Connectivity.Core.Database.TransactionContext.OnSqlException(SqlException e)
   at Connectivity.Core.Database.SqlAccess.ExecuteNonQueryInternal(SqlCommand cmd)
   at Connectivity.Core.Database.SqlAccess.ExecuteNonQuery(CommandType commandType, String commandText, Int32 commandTimeout, SqlParameter[] commandParameters)
   at Connectivity.Core.BusinessLogic.WorkgroupBL.Database.RemovePublisher(String sqlPublisher)
   at Connectivity.Core.BusinessLogic.WorkgroupBL.DisableReplication()
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
   --- End of inner exception stack trace ---
   at Connectivity.Application.VaultManager.KnowledgeMasterService.DisableWorkgroupReplication(String dbUser, String dbPass)
   at Connectivity.Application.VaultManager.ReplicationUtil.DisableWorkgroupReplication_DoWork(Object sender, DoWorkEventArgs e)

Running this SQL Query indicated that even after disabling replication to subscribers, they were marked as being still replicated.

SELECT DISTINCT name, category
     FROM   master.dbo.sysdatabases
     WHERE ((category & 4) = 4)
   and databasepropertyex(name, 'Updateability') = 'READ_WRITE'
        and has_dbaccess(name) = 1

I don't know the circumstances that led to this behaviour, but to Workaround this I ran this Script against all the databases to overcome it. WARNING!!! DO THIS ONLY IF YOU ARE CERTAIN THAT THESE DATABASES SHOULD NOT BE REPLICATED TO ANY SUBSCRIBER.

Use <Vault>
sp_removedbreplication


Viewing all articles
Browse latest Browse all 167

Trending Articles