question

CalvinDelaney-8033 avatar image
0 Votes"
CalvinDelaney-8033 asked BjoernPeters edited

Starting SQL Server in Azure with Single user mode

Hi All,
Is there a way to start SQL Server in Azure with single user mode with instance not being a VM ?. The sysadmin access is lost and need to get back in. Would the same instructions on a regular instance apply to Azure SQL Server ?


Thanks.

azure-sql-virtual-machinesazure-sqldatabase-edge
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I should probably say - loginmanager/dbmanager.

0 Votes 0 ·
Prrudram-MSFT avatar image
0 Votes"
Prrudram-MSFT answered Prrudram-MSFT edited

Hello @CalvinDelaney-8033,

Thank you for reaching out to Microsoft Q&A platform. Happy to answer your question.
In case of a VM, this can be done, as SQL server on VM is just like as on-premises VM. You can refer to the following link for details alter-database-set-single_user-statement-in-sql-server
I have verified in our lab and, it is not supported in SQL PaaS environment.

Please "Accept as Answer" and Upvote if any of above helped so that, it can help others in community looking for remediation for the similar issues.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That is the point. It is not a VM and I know it can be done if it was a VM.

0 Votes 0 ·
BjoernPeters avatar image
0 Votes"
BjoernPeters answered BjoernPeters edited

You should be able to reset that password within the Azure portal on the Overview blade of that Azure SQL Server
There should be a Link/Button "Reset Password" which resets the admin password for that whole server

=> be careful if this server was used by different/several applications and databases and not just one.

183757-16-03-2022-14-26-04.png



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.