How to make exclusiv config changes on a managed instance

Thimo König 0 Reputation points
2024-08-05T09:22:33.1333333+00:00

We want to make a change to the configuration of a DB which seems to be done best when there are no active users/connections to the DB. In our case we want to set READ_COMMITTED_SNAPSHOT to ON

We thought of using SINGLE_USER Mode like described here: https://video2.skills-academy.com/en-us/sql/relational-databases/databases/set-a-database-to-single-user-mode?view=sql-server-ver16 to make sure all current sessions are closed before we apply the change. But this feature is not supported by a managed instance. So we wonder what would be the best approach to apply such a change on a managed instance?

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,131 Reputation points
    2024-08-22T06:27:48.8066667+00:00

    Hi Thimo König •,

    On Azure SQL Managed Instance, this works without the need of the single user mode (which is by the way not supported on the Azure SQL MI):

    User's image

    Hope this helps.

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.