• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC to SQL Server 2005 connectivity error  RSS feed

 
Prateek Gupta
Greenhorn
Posts: 17
Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I try to connect to SQL Server 2005 using JDBC, sometimes , the following error occurs and the connection fails..

" Prelogin error: host localhost port 1434 Error reading prelogin response: Connection reset "

I cant understand the reason behind this.. Please Help !!
 
Alpesh Gediya
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Pratik

are you sure SQL server running on 1434 port?

As per my knowledge sqlserver by default run on 1433?

can you please verify on which port sqlserver running?
 
Prateek Gupta
Greenhorn
Posts: 17
Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup.. I've checked the server logs... Server is listening on port 1434......

Also, I only encounter the above mentioned problem sometimes in a day.. Otherwise everything works fine...
 
Alpesh Gediya
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you must be using UDP connection connect to database , am i right?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!