Solved

Trying to Disable/Delete Publishing and Distribution

Posted on 2010-11-08
3
1,132 Views
Last Modified: 2012-05-10
I tried creating a Peer to Peer Replication on SQL Server 2008. I am trying to Delete or disable ir but I get the following error:
I tried the solution provided here but it didnt work for me.
http://awesomesql.wordpress.com/2010/02/08/sql-error-cannot-execute-as-the-database-principal-because-the-principal-sec_user-does-not-exist-this-type-of-principal-cannot-be-impersonated-or-you-do-not-have-permission/


I checked permissions on the user and have given complete control to the user.



Disabling Distribution...

- Disabling publishing and distribution (Error)
Messages
SQL Server could not disable publishing and distribution on 'prtrwebserver'. (Microsoft.SqlServer.ConnectionInfo)

------------------------------
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 'master'. (Microsoft SQL Server, Error: 15517)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=15517&LinkId=20476



 
Replication.png
0
Comment
Question by:isaackhazi
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
subhashpunia earned 500 total points
ID: 34083200
Check the sp_dropdistributor @no_checks = 1

Before executing please check the details of this sp here:
http://technet.microsoft.com/en-us/library/ms173516.aspx
0
 
LVL 8

Author Comment

by:isaackhazi
ID: 34083316
Thanks,


 where do I find and check this?
0
 
LVL 8

Author Closing Comment

by:isaackhazi
ID: 34118122
Good
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question