Problem registering server - "Cannot find distribution.."

Compresses, encrypts, secures and monitors SQL Server backups.

Moderators: Chris Auckland, eddie davis, Colin Millerchip, Brian Harris, james.billings, RBA, petey

Problem registering server - "Cannot find distribution.."

Postby Rhansell » Thu Mar 08, 2012 2:44 pm

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!
Rhansell
 
Posts: 2
Joined: Thu Mar 08, 2012 2:38 pm
Location: PA

Postby Chris Auckland » Mon Mar 12, 2012 5:34 pm

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-s ... ectly.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
Chris Auckland
 
Posts: 757
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.


Return to SQL Backup 6

Who is online

Users browsing this forum: No registered users and 0 guests