Error - “The server was not found or was not accessible” when trying to connect to sql server database

前端 未结 2 393
旧时难觅i
旧时难觅i 2021-01-25 13:37

I\'m working on a local project and trying to connect to a local database. I have this class in it the connection string:

public class SQLConnection
{
    public         


        
2条回答
  •  不知归路
    2021-01-25 13:58

    Enable remote connections for SQL Server Express 2012 Most common problems are: 1) Your sql server express is not running. Check it in "sql server configuration manager" 2) server runs but don't allow remote connection. Use sql management studio to configure it.

提交回复
热议问题