-->
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.  [ 3 posts ] 
Author Message
 Post subject: named connection
PostPosted: Thu Jan 18, 2007 1:31 pm 
Newbie

Joined: Wed Jan 17, 2007 10:32 am
Posts: 6
Hi Hibernate Forum.

How do I connect to a database using named connections?

I am attempting to connect to an MSSQL database. I am using a connection string looking like:

Code:
jdbc:microsoft:sqlserver://ptlacpt01\ptldev01:1433;databaseName=CC2DEV;selectMethod=cursor;


and getting:

Code:
Message: Error debug in getConnection() : [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.


Using
Code:
version 3.2.1


Code:
<bean id="internalDataSourceDev" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
   <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
   <property name="url"
value="jdbc:microsoft:sqlserver://PTLACPT01.companydomain.com\ptldev01:1433;DatabaseName=CC2DEV;SelectMethod=Cursor"/>
   <property name="username" value="username"/>
   <property name="password" value="password"/>
</bean>


Someone not using Hibernate doing it all with JDBC seems to have no problem with this URL.

Any ideas?

~ Mike


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 1:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i don't see anything related to hibernate in that.....

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 19, 2007 10:38 am 
Newbie

Joined: Wed Jan 17, 2007 10:32 am
Posts: 6
max wrote:
i don't see anything related to hibernate in that.....


My apologies. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.