How to connect to database



I created database EMPLOYEE_DETAILS in SQL Management Studio. I’m unable to connect to database. when i test the connection its throwing following exception.

.Net SqlClient Data Provider : 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)

please help to resolve it.


Hi @kariyankoden,

Please take a look.



Thanks for your response.