Solved

Trying to Disable/Delete Publishing and Distribution

Posted on 2010-11-08
3
1,139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

636 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