I get the following error when I try to detach the model database.
System databases master, model, msdb, and tempdb cannot be detached.
So I added -m -c -T3608 to the startup parameters.
I restarted the sql services.
But now when I try to connect to the local database using query agent, Unable to connect to server. Reason Server is in single user mode.
How do I run the query now? :unsure: