-->
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: sql server and integratedSecurity
PostPosted: Wed May 23, 2007 1:29 am 
Newbie

Joined: Wed May 23, 2007 1:19 am
Posts: 2
Hibernate version:
3

I am using sql server 2005, I am trying to use integreted security with and I am trying to get hibernate to connect to the database with a username and password I specify instead of using the credentials I am currently logged in with.

my cfg file looks like:

Code:
       <property name="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
        <property name="connection.url">jdbc:sqlserver://server\instance;integratedSecurity=true;databaseName=db</property>
        <property name="connection.username">username</property>
        <property name="connection.password">password</property>


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 2:04 am 
Newbie

Joined: Wed May 23, 2007 1:19 am
Posts: 2
The solution is that you have to run your application (in my case eclipse) as the user you wish to log in as.

So, shift-right click the eclipse run-time and do run-as


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.