Data Source or Server Name or IP address is Correct. For example here localhost. You can also put a .(dot) instead of machine name. For
example .\SQLExpress
2. If any instance used check whether the instance name is correct. For example here SQLExpress
3. If any remote connections check if there is some firewall installed if yes disable it.
4. Also check if remote connections are configured in SQL Server. To configure SQL Server to allow remote connections read
here. This article
also explains how to create an exception in firewall in order to allow remote connections.
also check ..
A-network-related-or-instance-specific-error-occurred-while-establishing-a-conne[
^]