Jump to content

Lesson Learned #267: Rename failed for Database 'XXX' in Azure SQL Database


Recommended Posts

Guest Jose_Manuel_Jurado
Posted

Our customer got the following errror message "The operation cannot be performed since the database 'digordercontrol-db-test' is in a replication relationship. (Microsoft SQL Server, Error: 40680)" trying to rename a database.

 

 

 

Our customer got the following error message using SQL Server Management Studio trying to rename a database.

 

 

 

 

TITLE: Microsoft SQL Server Management Studio

------------------------------

 

Unable to rename XXX
. (ObjectExplorer)

 

------------------------------

ADDITIONAL INFORMATION:

 

Rename failed for Database 'XXX'
. (Microsoft.SqlServer.Smo)

 

For help, click:

 

------------------------------

 

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

 

------------------------------

 

The operation cannot be performed since the database 'XXX' is in a replication relationship
. (Microsoft SQL Server, Error: 40680)

 

For help, click:

 

 

 

Solution

 

 

 

 

This error ocurred when the database is configured in an active geo replication relationship and a failover group. To fix this problem it is needed to remove the database from the active geo replication and failover group to be able to rename the database.

 

 

 

 

 

 

Enjoy!

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...