SQL server can only connect in Management Studio

seems to be a lot on internet about this error, but can't get connection to work
note the error happens on both same and remote server

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)

SQL 2014
database added
both SQL and Windows authentication enabled
both SQL and Windows authentication work in SQL Server Management studio

HOWEVER neither methods (Windows or SQL) works in e.g. Visual studio etc. (either on same or remote LAN Server)
I've tried using IP address and also the domain e.g. me.mysite.com

I have Express and Standard SQL installed, not sure if that would be problem

server name:
server name:  me.mysite.com

correct username/password input

SO, how do I get BOTH SQL Management Studio  AND other programs e.g. Visual studio, ASP.Net to connect..thanks
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
run sql configuration manager and enable the protocols you want if any changes restart that sql server instance. open port 1433 on the sql server tcp inbound.

With default names sql express instance will be servername\sqlexpress and standard sql will just be servername.  If you are not in the same domain or on the same machine you must use sa authentication because it needs something to authenticate the username password combination with
rwallacejAuthor Commented:
On SAME server. SSMS connects fine. Client apps or visual studio don't connect
Instance name is MSSQLSERVER2014
Please give example of string for this (if instance name must be included)
I can't think I've seen instance names in connection strings before
Port 1433 & protocols enabled
Vitor MontalvãoMSSQL Senior EngineerCommented:
SQL Server Browser service need to be run for accept remote connections.
Check if that service is running. If not set it to automatic and start the service.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

rwallacejAuthor Commented:
given up on this for now, will try another time
rwallacejAuthor Commented:
turning off the firewall helped and using the x.x.x.x\INSTANCE instead of x.x.x.x helped
David Johnson, CD, MVPOwnerCommented:
without an instance name it connects to mssqlserver but your instance name is MSSQLSERVER2014 ergo you need to connect to servername\MSSQLSERVER2014  you can re-enable the firewall if port 1433 and 4022 are open for the local network on the server for inbound tcp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.