IT Community - Software Programming, Web Development and Technical Support

Not able to connect MS SQL server 2005 in Vista ?

This is a discussion on Not able to connect MS SQL server 2005 in Vista ? within the Database Support forums, part of the Web Development category; Not able to connect MS SQL server 2005 in Vista I am new to SQL server 2005 and Windows Vista. ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 05-14-2009, 12:44 AM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Not able to connect MS SQL server 2005 in Vista ?

Not able to connect MS SQL server 2005 in Vista

I am new to SQL server 2005 and Windows Vista. I installed SQL server 2005 and SQL Server 2005 SP2. It seems that I get a "cannot connect to server" problem. I see the "Connect to server" popup window when hit the "Connect Object explorer" under the file menu or "Connect database Engine" under the Object explorer pane. Trying to see a Server name I recognized there was nothing there. Tried "browse for more" but It seems that no servers can be found at all.

I logged into Windows Vista with my account (with administrator rights, but not the Main Administrator account itself). I also tried SQL Server 2005 User Provisioning Tool for Vista, but it cannot find no instances in the "Available Privilegies" window.

I read a lot on forums on the net, but what is the best solution to use for this situation? Maybe I shall log on with the Main Admin Account and install again? Or is there better ways? Please can someone give me the best practices for this topic?

Thanks in advance!
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-14-2009, 12:45 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,


You can just type in server name and make connection, ensure sql services are running.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-14-2009, 12:46 AM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,

My problem is that I can't find a server (servername) to connect with. I tried some servernames which I invented (since I don't find some). I also tried my computer name, but that also failed. I've got this error:

Cannot connect to server.
------------------------------

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: 53)

What should I do?
__________________
Shaalini.S
Be the Best of Whatever you are...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-14-2009, 12:46 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,

Ensure sql server service and sql server browser service are running on vista, use proper sql instance name if you installed sql2k5 as named instance.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-14-2009, 12:48 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,

Make sure that the "Server" service is started

Also make sure in SQL Server you have the following active:

1 - Allow remote connections

2 - TCP/IP and named pipes
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 05-14-2009, 12:51 AM
nnraja nnraja is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 144
nnraja is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,

Also, don't forget to start the SQL Browser. That allows other machines to see the SQL instances on the host computer.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 05-14-2009, 12:55 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Not able to connect MS SQL server 2005 in Vista ?

Hi,

Recently i faced with same problem and finally found its reason and also solution. in fact Windows Vista firewall don't let your remote computer to connect with sql server service.

solution is easy! go to control panel -> Windows Firewall with Advanced Security, and set your firewall.

for more details on how let your firewall do well with Sql Server follow the link below:

FIX: Error message when you connect to a named instance of SQL Server on a client computer that is running Windows Vista or Windows Server 2008: "Specified SQL server not found" or "Error Locating Server/Instance Specified&#34
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server 2000 migration to SQL Server 2005 Collation Change - Method? arjkhanna Database Support 5 10-02-2009 09:58 PM
SQL 2005 Standard on Vista RTM arjkhanna Server Management 7 11-13-2007 11:51 PM
ERROR 2002 (HY000): Can't connect to local MySQL server through socket Gopisoft Database Support 1 10-29-2007 02:07 AM
What is a Linked Server in sql server 2005? Archer Database Support 2 08-14-2007 03:24 AM
How to connect FTP Server using Perl? raj Perl 1 07-20-2007 02:45 AM


All times are GMT -7. The time now is 11:43 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0