Problem registering server - "Cannot find distribution.."

Forum for users of Redgate's SQL Backup tool

Problem registering server - "Cannot find distribution.."

Postby Rhansell » Thu Mar 08, 2012 1: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?

Posts: 2
Joined: Thu Mar 08, 2012 1:38 pm
Location: PA

Postby Chris Auckland » Mon Mar 12, 2012 4: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 - ... 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 -

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 Auckland
Posts: 760
Joined: Tue Oct 24, 2006 1:12 pm
Location: Red Gate Software Ltd.

Return to SQL Backup Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests