Site icon Database Tutorials

The database could not be exclusively locked to perform the operation

 

ERROR MESAGGE:

The database could not be exclusively locked to perform the operation.

EXPLANATION:

When performing an operation in a database (such as changing the database name or changing the Collation setting …), you may experience such an error.

SOLUTION:

There should not be another user connected to the database to perform such operations. You can also do this with a command block as follows. Note that this will kill other sessions in the database.

Change your database name:

Exit mobile version