January 19, 2012 at 11:37 am
Hi list,
I have some old replications on my prodution server that no longer exists...I mean, the subscriber server was formated and SQL Server was installed from scratch.
I cannot delete these local publications..I keep getting the same error for all of them:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Could not delete publication 'rep_corporerm'.
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.
Changed database context to 'CorporeRM'. (Microsoft SQL Server, Error: 15517)
Is there any workaround to delete these publications for good?
Regards,
Mario
January 19, 2012 at 12:23 pm
It sounds as though you have some permissions issue with the older publications.
If you log in as "sa", can you do a sp_droppublication on the item?
January 20, 2012 at 3:46 am
You can try one of these and reset up replication afterwards.
sp_removedbreplication
sp_replicationdboption @dbname = N'<Publication database name>', @optname = N'publish', @value = N'false'
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply