-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: unable to connect to MSSQL using jtds driver and hibernate
PostPosted: Wed Nov 28, 2007 6:02 am 
Newbie

Joined: Wed Apr 27, 2005 5:03 am
Posts: 10
Hi all ,

I am getting the following exception while trying to connect to MSSQL using jtds driver and hibernate .

java.sql.SQLException: Network error IOException: Connection refused: connect

The server name given to me is something like

ABC2345SD.DEF.COMPANY.COM\ABCD6543

database name = AAA

so what should be my connection url in the hibernate configuration file

<property name="connection.url"> </property>

thanks and regards,

ivin




Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 10:26 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi,

we got it to work with:

Code:
jdbc:jtds:sqlserver://servername:1433/databasename;namedPipe=true


Depending on the server configuration the port may vary,
also ";namedPipe=true" may cause troubles.

_________________
dont forget to rate !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.