Removed Mirroring but Witness did not delete it's record

  • I used SSMS to remove mirroring but the row in the view on witness server didn't get deleted. Now I there are thousands of messages a day in the SQL log:

    Database mirroring connection error 4 'An error occurred while receiving data: '64(The specified network name is no longer available.)'.' for 'TCP://<server name:5022'.

    How do I fix this since it's a view?

    MG

    "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
    Tony Hoare

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

  • At the principal, run:

    -- This should tell the witness that it is no longer needed. Might have just had issues with the SSMS GUI.

    ALTER DATABASE [DatabaseName] SET SAFETY OFF

    -- Here is the other option. I am going to guess that this statment would fail if mirroring has already been disconnected. However, if the above doesn't work, it is worth an attempt.

    ALTER DATABASE [DatabaseName] SET PARTNER OFF

    Fraggle

  • Thanks - I thought of that but my concern is that I moved the database being mirrored to new hardware but used the existing witness server so I have 2 entries on the witness for the same database name. I'm afraid it won't remove the correct entry or do some other strange damage.

    I'm thinking I'll need to wait for our next Maintenance Window and remove the witness from the current mirror, try the Alter Database syntax and then add the witness again unless someone has something else that can be done.

    MG

    "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
    Tony Hoare

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply