A network-related or instance-specific error occurred while establishing a connection to SQL Server. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

A network-related or instance-specific error occurred while establishing a connection to SQL Server.

can anyone give the permanent solution of this problem

3rd Sep 2017, 8:42 AM
Dheeraj Sharma
Dheeraj Sharma - avatar
3 Answers
+ 5
Try to ping your server where SQL Server is installed, or if it's installed in your development machine check if the service is running. Can you describe what triggered this? also make sure it's non-code fault. Hth, cmiiw
3rd Sep 2017, 9:28 AM
Ipang
+ 5
Okay, so is SQL Server installed on your machine or another? have you tried my first suggestion? tell me how it goes.
3rd Sep 2017, 9:35 AM
Ipang
0
there is no fault in code
3rd Sep 2017, 9:31 AM
Dheeraj Sharma
Dheeraj Sharma - avatar