I am writing a program that connects to a SQL Server (IGOR-PC
- SQL Server 10.50.4044 - instance Igor-PC\Igor
)
The code is this:
SqlConnection myConnection = newSqlConnection("Server=.\\Igor;Database=Prueba");
myConnection.Open();
But I get this 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
not monitored System.Data.SqlClient.SqlException
Thanks!