Marsh-Narewec
asked on
Cannot connect to MS SQL Server 2008 R2 on Win2008 Server R2 using MS SQLMS
Dear all
From my laptop I am unable to connect to the network SQL server ( MS SQL 2008 R2, Win2008 R2 Server) using MS SQL Mgt Studio. It gives me following error.
However I am able to access my web application on the server which accesses the database on that server.
Please assist.
From my laptop I am unable to connect to the network SQL server ( MS SQL 2008 R2, Win2008 R2 Server) using MS SQL Mgt Studio. It gives me following error.
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)
However I am able to access my web application on the server which accesses the database on that server.
Please assist.
did you ever access the SQL database from your laptop on the same network?
Is your laptop is in same domain as your DataBase.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
(1) I never directly via MS SSMS access the SQL Server database using my laptop. However using my laptop I can access the web application installed on the same server as its database.
(2) My laptop is in the same domain as the Database Server
(3) I tried accessing using IP address instead of server name but that too did results in the same error.
My laptop is Win 7 professional edition. I am trying to connect to a MS SQL 2008 R2 database install on a win 2008 r2 server using MS SQL Server Management Studio.
(2) My laptop is in the same domain as the Database Server
(3) I tried accessing using IP address instead of server name but that too did results in the same error.
My laptop is Win 7 professional edition. I am trying to connect to a MS SQL 2008 R2 database install on a win 2008 r2 server using MS SQL Server Management Studio.
ASKER
Guys resolved the issues myself :)
Windows 2008 R2 -- > Administrative tools - Windows Firewall with Advance Security --> Windows Firewall Properties --> Firewall State --> Inbound Connections --> "Allow"
Windows 2008 R2 -- > Administrative tools - Windows Firewall with Advance Security --> Windows Firewall Properties --> Firewall State --> Inbound Connections --> "Allow"
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for Marsh-Narewec's comment #a38453472
for the following reason:
Found the solution myself
Accepted answer: 0 points for Marsh-Narewec's comment #a38453472
for the following reason:
Found the solution myself
i think jaime_olivares already posted the corresponding solution in comment 38453412.
Try to configure your server to accept TCP/IP connections (launch your SQL configuration tool). Then try to access the server using the IP address instead of a name, if it succeeds, try to do it by machine name.
This resembles me a police series. I think the suggestion of trying TCP-IP led you to an "inevitable discovery" of the solution.
sorry, I didn't press the "Object" button. Please read my previous comment.
ASKER
Nope.
This blog :
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
led me to resolving the issue.
This blog :
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
led me to resolving the issue.
ASKER
Nope it never did.
I copy paste the error message on Google search and the URL link I provided above led me to solving the issues.
The expert comment talks about "configuration manager" nothing was mentioned above "firewalls".
I copy paste the error message on Google search and the URL link I provided above led me to solving the issues.
The expert comment talks about "configuration manager" nothing was mentioned above "firewalls".
ASKER
Just letting you Admin and others you may later come upon this thread that that's not a solution. Admin forced to accept which I don't have control.
To resolve this similar issue that I posted please read this blog:
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
I am newbie to EE and I think the Admin is VERY unfair.
To resolve this similar issue that I posted please read this blog:
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
I am newbie to EE and I think the Admin is VERY unfair.
Hi Marsh,
I am not an admin or moderator, but I am a very old contributor here at EE, so let's me explain you the dynamic from my point of view:
When any member sends a question which is not precise or detailed, we usually shoot a possible answer and wait some feedback to continue moving towards the solution.
In your case, the 3 of us shot the first answer and were waiting for your feedback, that arrived soon after 30 minutes. 10 minutes later, and before we could continue guiding you to the solution, you posted your own answer.
I am pretty sure I would arrive to the same conclusion by suggesting:
- To ping your server IP
- To verify the IP Port used by the SQL server
- And finally, to review your server's firewall options
- etc.
Even in the case you used another site to find the solution, it is customary here at EE to award points to the people who tried to help you (at least partially). You could score a B or even a C, also you could award some points to the other experts that certainly could also post the final solution. As you did nothing of them, the admins decided to force accept.
Hope this helps,
Jaime.
I am not an admin or moderator, but I am a very old contributor here at EE, so let's me explain you the dynamic from my point of view:
When any member sends a question which is not precise or detailed, we usually shoot a possible answer and wait some feedback to continue moving towards the solution.
In your case, the 3 of us shot the first answer and were waiting for your feedback, that arrived soon after 30 minutes. 10 minutes later, and before we could continue guiding you to the solution, you posted your own answer.
I am pretty sure I would arrive to the same conclusion by suggesting:
- To ping your server IP
- To verify the IP Port used by the SQL server
- And finally, to review your server's firewall options
- etc.
Even in the case you used another site to find the solution, it is customary here at EE to award points to the people who tried to help you (at least partially). You could score a B or even a C, also you could award some points to the other experts that certainly could also post the final solution. As you did nothing of them, the admins decided to force accept.
Hope this helps,
Jaime.
ASKER
Hi Jamie, thank you this information. It really helps me understand EE. As I mentioned earlier I am new to EE and starting to learn the ropes here.
Please accept my apologies.
Marsh.
Please accept my apologies.
Marsh.
No worries, and happy exchange!