Problem registering server - "Cannot find distribution.."

RhansellRhansell Posts: 4
edited March 12, 2012 12:34PM in SQL Backup Previous Versions
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!

Comments

  • 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:
    @servername

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

    @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
Sign In or Register to comment.