Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 30th, 2009, 03:58 AM
Authorized User
 
Join Date: Nov 2008
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Rambo
Default SQL Server 2005 Connictivity Issue

Dear Expert,

I have a problem and i hope to get assistance.

My problem as follows, I have a .NET database application and i want to run the application on multiple PCs connecting to a central database located on MS SQL Server 2005 Express .
I want to test the application on virtual machines , so i did created two virtual machines the first one named "STATION1" and it has SQL Server installed and the second one named "STATION2" which represents the database client.

With the regard network connectivity, I did tested it by using shared folders and i did make sure that this shared folder are accessible by both PCs, when I came to database server connectivity test, things didn't were ok; when i tried to connect to SQL server through STATION2 using SSMS express and when i browse network servers i get an entry named STATION1 without the instance name which in my case the default name "SQLEXPRESS" and when i do press connect button a get the following error message:

TITLE: Connect to Server
------------------------------
Cannot connect to STATION1.
------------------------------
ADDITIONAL INFORMATION:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLS erver&EvtID=2&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------

And if i type the server name followed by instance name "STATION1\SQLEXPRESS" i get the following error message:

TITLE: Connect to Server
------------------------------
Cannot connect to STATION1\sqlexpress.
------------------------------
ADDITIONAL INFORMATION:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLS erver&EvtID=-1&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------

I cann't connect to SQL server over the network even though i did enabled remote connections to this instance by both of TCP/IP and Named Pipes protocols using SQL Server surface area configuration.

Additional note about checking network connectivity when i press connect i notice that the network icon to the both of virtual machines are flashing this indicates about network activity.
In short, my problem in my opinion with the SQL Server itself not any thing else, so please any one reads this; please share me with your knowledge and thanks in advance.
__________________
John Rambo
 
Old September 30th, 2009, 07:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Did you check for proxies or firewall that not allow the connection to be met?? Maybe it's an issue with virtual machines.. did you google about it???
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old October 1st, 2009, 03:24 AM
Authorized User
 
Join Date: Nov 2008
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Rambo
Default

Dear Gonzalo,

First I would like to thank you for your replay.

And second I pleased to get a replay for argentinian because i'm a big fan to argentina football and players , and i'm so sad for the poor status for this team now and i hope a good luck in the match against uruguay in the 14th of this month because i cann't imagine world cup without the Tangoo team.

In the regard on my problem, I'm sure it's not firewall issue because i can see the server name and i can't see the instance !
__________________
John Rambo
 
Old October 1st, 2009, 08:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

That you can see the server doesn't meant that you don't have to test for firewall or proxy connections between virtual instances. Since they are virtual, they have virtual network cards, and they can be configured wrong, not allowing the connection.

And we will be on the CUP! (or at least we hope to).
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
The Following User Says Thank You to gbianchi For This Useful Post:
Rambo (October 3rd, 2009)
 
Old October 3rd, 2009, 07:30 AM
Authorized User
 
Join Date: Nov 2008
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Rambo
Default Problem has been solved

Dear gbianchi,

I tested the firewall and you was right! , so i did disabled the firewall for local area connection and every thing worked OK.

Thank you very much for your help.

__________________
John Rambo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about SQL Server 2005 and SQL Server Express Edition 2005 gfmann BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 24th, 2009 09:36 AM
Difference between SQL Server 2000 and SQL Server 2005 leena K SQL Server 2005 4 March 31st, 2009 09:07 AM
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.