Click here to Skip to main content
15,747,637 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to access a database i have the server name, database name, username and password but not sure how to access it

What I have tried:

I have tried using microsoft SQL server management but when i enter the details i get the message,
TITLE: Connect to Server

Cannot connect to


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) (Microsoft SQL Server, Error: 53)

For help, click:


The network path was not found


Updated 15-Mar-23 5:10am
Dave Kreskowiak 15-Mar-23 10:38am    
What's the database engine you're trying to connect to? Is it really SQL Server? MySQL? Oracle? ... what?

For example, you cannot use the SqlClient classes on an Oracle database engine. SqlClient is only for SQL Server.
RedDk 15-Mar-23 13:05pm    

Penguin - a PostgreSQL database server.
Dragon - a MySQL database server.

So, not even SQL Server. And as DK suggests, perhaps Oracle will have some facts you can subduct with the use of a ... what's that thing? Never mind. I forgot what I was going to say.

The error message is quite clear: your system cannot connect to that remote site, or the database you are targetting does not exist, or is inaccessible. So you need to talk to the sysadmin who manages the dragon site to get the correct connection details.
Share this answer
To add to what Richard has said, SQL Server defaults to "remote access disabled" in some versions for security reason, so if the DB admin of your remote site has not explicitly enabled it you cannot access the DB except from it's own local network.

As Richard said, you need to talk to the DB admin.
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