I've switched from AzureDb to a local SQL Server Express instance for my project. I can connect to the instance using Management Studio and see that the server is the usual .\sqlserver
with sa
and a dummy password. The actual database isn't created yet but I can access the server and see system databases as well as create logins.
However, trying to perform a migration database update, I get the following error.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 26 - Error Locating Server/Instance Specified)
Naturally, I suspected something with my connection string (which I still do).
"ConnectionStrings": { ...
"SqlServer": "Server=.\\sqlserver;Database=Blopp;Uid=sa;Pwd=Abc123();"
}
I've tried all the usual variations - single backslash, quadrupple backslash, forwardslash, at-char in the beginning, (localhost) instead of dot, computer name instead of dot etc. I'm out of ideas what else it might be. I've tried creating the DB manually. I tried using caps (although I know it's case insensitive). Nothing helped...
Proof of the usual effort: here (SO), here (MSDN), here (SO), here (SO), here (Hanselman), here (client protocol/service running).
What on earth am I missing?