dbTalk Databases Forums  

Driver JDBC and Sql Server browser

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Driver JDBC and Sql Server browser in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ES
 
Posts: n/a

Default Driver JDBC and Sql Server browser - 02-14-2011 , 05:58 AM






Hi,
I've searched for an answer for hours so this newsgruoup is my last chance.

A Java Application uses a JDBC driver without port specification.
Something like

jdbc:sqlserver://localhost;instanceName=instance1 [..]

instance1 is a named instance in a two-nodes cluster active-active with
a different port than default, for example 3234.
In this case the last connection string dosn't work, BUT if I try
something like

jdbc:sqlserver://localhost;instanceName=instance1:3234 it works.

Now, I don't understand. Sql Server Browser is up and running, and
I know that it have to provide these informations like port number and
istance name. So, what about this behaviour ? Do I really need port
number anyway ?

Thanks in advance for your help

Bye

ES

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Driver JDBC and Sql Server browser - 02-14-2011 , 07:06 AM






ES (emacpi (AT) NOSPAMyahoo (DOT) it) writes:
Quote:
jdbc:sqlserver://localhost;instanceName=instance1:3234 it works.

Now, I don't understand. Sql Server Browser is up and running, and
I know that it have to provide these informations like port number and
istance name. So, what about this behaviour ? Do I really need port
number anyway ?
Have you verified that UDP port 1434 is open in the firewall?


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) 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

Reply With Quote
  #3  
Old   
ES
 
Posts: n/a

Default Re: Driver JDBC and Sql Server browser - 02-14-2011 , 07:50 AM



Il 14/02/2011 14.06, Erland Sommarskog ha scritto:

Quote:
Have you verified that UDP port 1434 is open in the firewall?


Quite strange : SSBrowser service is up 'n running but
there's no port 1434 listening. Further more , there's no port listening
associated to sqlbrowser.exe's PID, also after a bounce.

I've no idea.
Anyway, thanks for the advice.

ES

Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Driver JDBC and Sql Server browser - 02-14-2011 , 04:17 PM



ES (emacpi (AT) NOSPAMyahoo (DOT) it) writes:
Quote:
Quite strange : SSBrowser service is up 'n running but
there's no port 1434 listening. Further more , there's no port listening
associated to sqlbrowser.exe's PID, also after a bounce.
Note that the Browser Services uses UDP, not TCP, and you don't "listen"
to a UDP port in the same way as a TCP port.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #5  
Old   
ES
 
Posts: n/a

Default Re: Driver JDBC and Sql Server browser - 02-15-2011 , 02:16 AM



Il 14/02/2011 23.17, Erland Sommarskog ha scritto:

Quote:
Note that the Browser Services uses UDP, not TCP, and you don't "listen"
to a UDP port in the same way as a TCP port.
True,
I made a mistake
in fact here's SSBrowser port and PID on netstat -a

UDP 0.0.0.0:1434 *:*
11028

but it doesn't work as I wish..
I've no firewall on this server.

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.