-->
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.  [ 4 posts ] 
Author Message
 Post subject: Cannot open connection pls hlp
PostPosted: Tue Mar 04, 2008 9:22 am 
Newbie

Joined: Tue Mar 04, 2008 9:08 am
Posts: 4
Hi,

I am new to hibernate. I tried to work out a simple program which could insert the data into the database using hibernate technology .I use SQL Server Database.
But When i run the program i am getting the following issue

"cannot open connection"

session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:sqlserver://maachd3m1s/gayathri</property>
<property name="hibernate.connection.username">tester</property>
<property name="hibernate.connection.password">tester123</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>


I have done the above changes to suit the SQL server database in the hibernate.cfg.xml
Could any one help me to resolve this issue.

Many thanks in advance

thanks
gayathri


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 11:19 am 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Can you post the exception trace? Also make sure that host maachd3m1s is reachable from your code.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 05, 2008 3:04 am 
Newbie

Joined: Tue Mar 04, 2008 9:08 am
Posts: 4
Thanks for ur hlp. i have fixed its working......


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 05, 2008 3:05 am 
Newbie

Joined: Tue Mar 04, 2008 9:08 am
Posts: 4
Thanks for ur hlp. i have fixed it , its working......


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