[Solved] Local database server Error: The server was not found or was not accessible

Last Reply 10 days ago By dharmendr

Posted 10 days ago

I am working with asp.net core 3.1.

I uploaded my application and database to Azure, so far it works fine, but I need to continue working on my project, when I compile I get an error that the server was not found or is not accessible, I restarted the SQL services thinking that it was the problem but it is not. When I try to delete the database from the VS console I get the same error and I realize that it is pointing to the Azure server.

Why does this happen to me if I did not configure the firewall in Azure to access from SQL?

In the appsetting.json file I have configured like this

"MyStringConnection": "Server=(localdb)\\MSSQLLocalDB;Database=MyBD;Integrated Security=true"

Thanks!