Click here to Skip to main content
15,902,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all :)

I got this message when I tried to connect to my sql server data base

how to fix it ? :\

Cannot connect to MSA-PC\MSASQL.


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: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)

thank you all

This error means that
either you are giving wrong credentials
or you have no permission to access that server.
Share this answer
I found the answer here:

Go to Configuration Manager and expand SQL Server services on the left pane. Then on the right pane select SQL Server service right click and the Start......

thank you all
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900