December 16, 2015 at 8:52 am
I get the following error when I attempt to delete a Publication.
I'm trying to resolve the issue but no luck so far?
Can't delete publication Cannot execute as database principle because principal dbo does not exist cannot be impersonated or you do not have permission
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 16, 2015 at 9:33 pm
try this
exec sp_removedbreplication N'sqlservername'
December 17, 2015 at 6:19 am
johnwalker10 (12/16/2015)
try this
exec sp_removedbreplication N'sqlservername'
The command executed successfully but it does not delete the publication.
Error: Could not find stored procedure. :ermm:
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 17, 2015 at 6:27 am
Which db are you running it against?
Also, what kind of replication is it?
December 17, 2015 at 6:43 am
Distribution was not installed correctly.
I executed the following command and it removed the publication:
sp_removedbreplication @dbname = N'AdventureWorks2014Publisher'
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 17, 2015 at 7:05 am
I also had to execute:
EXEC sp_dropdistributor @no_checks = 1, @ignore_distributor = 1
GO
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 17, 2015 at 7:41 am
Beatrix Kiddo (12/17/2015)
Which db are you running it against?Also, what kind of replication is it?
Adventureworks2014
Transactional Pull
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply