-->
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: Connecting to SQL-Server 2008 from Grails
PostPosted: Sat Feb 07, 2009 9:03 pm 
Newbie

Joined: Fri Feb 06, 2009 7:55 pm
Posts: 2
I am a grails user and working with sql server 2008. Because grails uses hibernate I think I am at the right place.

I need some hints on how to get further in connecting to SQL-Server 2008.

Code:
url = "jdbc:sqlserver://[SERVER]:[Port];databaseName=...;instance=SQLEXPRESS;user=...;password=...;"
dialect = org.hibernate.dialect.SQLServerDialect


This code works with SQL Server 2000 and 2005 with pure Groovy-JDBC and Grails / Hiberante. Great!

But switching to SQL Server 2008 only connecting with Groovy JDBC works. Grails / Hibernate does not.
In the stack trace the SQL Server returns, is written, that the user 'sa' has an Authentification Error, though I tried to log as another user.
So I guess I am using a false connection url or it might be something hibernate dialect specifc.

Perhaps somebody can give me a hint where to dig further?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 08, 2009 4:29 pm 
Newbie

Joined: Fri Feb 06, 2009 7:55 pm
Posts: 2
Fixed, did a typo. SQL Server 2008 works with hibernate in the way it was described in the last post.


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.