Unix Technical Forum

Cannot connect to SQL instance without port information

This is a discussion on Cannot connect to SQL instance without port information within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi all, I'm having some trouble with connecting to SQL server instance lately without adding a port number. I ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:26 PM
Flash08
 
Posts: n/a
Default Cannot connect to SQL instance without port information

Hi all,

I'm having some trouble with connecting to SQL server instance lately
without adding a port number. I used to be able to always connect to
instance without having to input SQLSERVER,portnumber. However now
this is not the case. I doing this through an ADO connection object,
and creating the connection string. Does anyone know if there was a
recent Microsoft update or patch that would've cause this to stop
allowing me to connect to a SQL instance without having to put in the
port information? Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:26 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Cannot connect to SQL instance without port information

Flash08 (stuart.karp@gmail.com) writes:
> I'm having some trouble with connecting to SQL server instance lately
> without adding a port number. I used to be able to always connect to
> instance without having to input SQLSERVER,portnumber. However now
> this is not the case. I doing this through an ADO connection object,
> and creating the connection string. Does anyone know if there was a
> recent Microsoft update or patch that would've cause this to stop
> allowing me to connect to a SQL instance without having to put in the
> port information? Thanks.


More likely this is a change in your environment. You don't say which
version of SQL Server you are using, but with SQL 2005 I think the
requirement is that the Browser service is running. On SQL 2000, you
need to be able to access port 1434 on UDP.

In both cases, firewalls may get in the way.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:43 PM
Joe Hurzeler
 
Posts: n/a
Default Re: Cannot connect to SQL instance without port information

Erland Sommarskog <esquel@sommarskog.se> wrote in
news:Xns996556346440Yazorman@127.0.0.1:

> Flash08 (stuart.karp@gmail.com) writes:
>> I'm having some trouble with connecting to SQL server instance lately
>> without adding a port number. I used to be able to always connect to
>> instance without having to input SQLSERVER,portnumber. However now
>> this is not the case. I doing this through an ADO connection object,
>> and creating the connection string. Does anyone know if there was a
>> recent Microsoft update or patch that would've cause this to stop
>> allowing me to connect to a SQL instance without having to put in the
>> port information? Thanks.

>
> More likely this is a change in your environment. You don't say which
> version of SQL Server you are using, but with SQL 2005 I think the
> requirement is that the Browser service is running. On SQL 2000, you
> need to be able to access port 1434 on UDP.
>
> In both cases, firewalls may get in the way.
>
>


Is there a reason you can't connect using Server\Instance type syntax?
Digg this Post!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 On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com