Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC to SQL Server 2005 connectivity error

 
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic