I have an errant publication I want to remove from my SQL instance but when I try to I get a message to the effect that the publication does not exist, the distributor in not set up correctly, or it can not find some procedure (but in typical SQL exception reporting never says what procedure it can not find).
I've tried several things.
attempt to delete using the object explore delete menu option:
this process errors out with the following error --
TITLE: Microsoft SQL Server Management Studio
------------------------------
Could not delete publication 'Freescale merge publication v031414'.
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Could not find stored procedure ''. (Microsoft SQL Server, Error: 2812)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=2812&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
The t-sql attempt: executing the following
se [FREESCALE]
EXEC sp_changedbowner 'sa'
exec sp_removedbreplication N'Freescale merge publication v031414'
exec sp_droppublication @publication = N'Freescale merge publication v031414'
GO
results in this error:
Msg 20026, Level 11, State 1, Procedure sp_MSrepl_droppublication, Line 146
The publication 'Freescale merge publication v031414' does not exist.
attempting to remove it using the following:
EXEC
sp_replicationdboption'FREESCALE','publish','false'
results in the following error:
Msg 20029, Level 16, State 1, Procedure sp_MSpublishdb, Line 58
The Distributor has not been installed correctly. Could not disable database for publishing
Looking at the properties of the distributor gives no clue to what's wrong.
I've tried to drop the subscribers but with similar results. using the delete from the object explorer menu gives the error about not finding some unspecified stored procedure, using the script:
EXEC sp_dropsubscription @publication = N'Freescale merge publication v031414', @article = N'all',
@subscriber = N'db-j.freescale',
@ignore_distributor = ignore_distributor
and results in this error:
Msg 8114, Level 16, State 5, Procedure sp_dropsubscription, Line 0
Error converting data type nvarchar to bit.
I've also tried the suggestion from this posting: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/56f4dccb-fd88-40d8-8428-f7c6a48fbafe/unable-to-disable-publishing-and-distribution?forum=sqlreplication
witout success.
Developer Frog Haven Enterprises