Red Gate forums :: View topic - Problem registering server - "Cannot find distribution.."
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Backup 6
SQL Backup 6 forum

Problem registering server - "Cannot find distribution.."

Search in SQL Backup 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Rhansell



Joined: 08 Mar 2012
Posts: 2
Location: PA

PostPosted: Thu Mar 08, 2012 2:44 pm    Post subject: Problem registering server - "Cannot find distribution.." Reply with quote

Hi all - So I am trying to register a new install of SQL2005 EE(64) in the SQL backup)6.5) client and it is giving me an error "Cannot find the distribution database" I have dropped replication, restored the distribution db, reinstalled redgate but still the error. Is there a flag somewhere, or something to change so RG ignores anything around replication?




Thanks!
Back to top
View user's profile Send private message
Chris Auckland



Joined: 24 Oct 2006
Posts: 757
Location: Red Gate Software Ltd.

PostPosted: Mon Mar 12, 2012 5:34 pm    Post subject: Reply with quote

Thanks for your post.

I've had a look into this and I think what you need to do is to remove the replication entries from the sysservers table in the master database.

Below is the procedure to remove the entries from the sysservers table, this was obtained and modified slightly from the procedure found in this article - http://www.dbforums.com/microsoft-sql-server/388210-distributor-has-not-been-installed-correctly.html:

1. Run this code or query:
use master
sp_configure 'allow update',1
Reconfigure with Override

2. Go to Master---Sysservers---Open---and delete the entries for all the servers(even the Local server).

3. Now run this query to re-add the local server with 0 id:

sp_addserver '@server = YourServer'

See this KB article for further details -http://msdn.microsoft.com/en-us/library/ms174411.aspx

3. now run this query:
Run select @@servername

It will return Null result.
So Stop and Restart the Services on the Sql Server and again run:

Select @@servername and this time it will return the Local server name.

4. On completion run this query:

use master
sp_configure 'allow update',0
Reconfigure with Override
_________________
Chris
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group