|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 3:20 AM
Points: 119,
Visits: 317
|
|
Dear,
I am trying to disable my distributor and publisher in replication but I am getting the following error message.
[ TITLE: Microsoft.SqlServer.ConnectionInfo ------------------------------ SQL Server could not disable publishing and distribution on 'SERVER1'.
------------------------------ 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) ]
please help me to sort out the problem.
Regards, Akbar
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:49 PM
Points: 323,
Visits: 960
|
|
please check if there any db_owner for your database used in replication.
if there is no change it to SA or any other active login
use Yourdatabase go sp_changedbowner 'sa'
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 3:20 AM
Points: 119,
Visits: 317
|
|
sanket kokane (11/7/2012) please check if there any db_owner for your database used in replication.
if there is no change it to SA or any other active login
use Yourdatabase go sp_changedbowner 'sa'
pls can u tell me the meaning of this line "Changed database context to 'master'. (Microsoft SQL Server, Error: 15517)"
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:49 PM
Points: 323,
Visits: 960
|
|
pls can u tell me the meaning of this line "Changed database context to 'master'. (Microsoft SQL Server, Error: 15517)"
Hi thats just a informational message ..
I think link below will help you more
http://support.microsoft.com/kb/913423/en-us
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 3:20 AM
Points: 119,
Visits: 317
|
|
I have gone through the above link. But I am using SQL Server 2008 R2. Will it work?
Thank You.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:49 PM
Points: 323,
Visits: 960
|
|
its working fine for me in SQL serevr 2008 R2
or else another option is
ALTER AUTHORIZATION ON DATABASE::YourDatabaseName TO sa GO
----------------------------------------------------------------------------- संकेत कोकणे
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 3:20 AM
Points: 119,
Visits: 317
|
|
| Thank you, SSC Veteran for your co-operation.
|
|
|
|