I am trying to restore the master db of a localDB server instance in SQL Server 2016. I cannot seem to figure out how to run the server in single-user mode so I can restore the master in SSMS. I know I can run the db with SQLLocalDB.exe but this does not specify a single-user argument option. When i run the following command:
C:\Program Files\Microsoft SQL Server\130\LocalDB\Binn> .\sqlservr.exe -c -m -S "(localdb)\MSSQLLocalDB"
I get an error that the "parent instance name exceeds maximum length".
I also tried the query SET SINGLE_USER, but i just get an error that i cannot do this with the master.
Does anyone know how to run this localdb instance in single-user mode, so I can restore the master db from a .bak file?
Thanks