Starting SQL Server in Azure with Single user mode

Calvin Delaney 1 Reputation point
2022-02-09T21:25:46.223+00:00

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.

SQL Server on Azure Virtual Machines
Azure SQL Edge
Azure SQL Edge
An Azure service that provides a small-footprint, edge-optimized data engine with built-in artificial intelligence. Previously known as Azure SQL Database Edge.
48 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Prrudram-MSFT 24,566 Reputation points
    2022-02-10T07:38:42.967+00:00

    Hello @Calvin Delaney ,

    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.


  2. Bjoern Peters 8,876 Reputation points
    2022-03-16T13:29:11.693+00:00

    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

    0 comments No comments

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.