-->
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.  [ 1 post ] 
Author Message
 Post subject: hibernate configuration question
PostPosted: Tue Jun 23, 2009 11:34 am 
Newbie

Joined: Tue Jun 23, 2009 11:27 am
Posts: 1
Hello,

I just recently started with nHibernate and got a nice project running at home. Now I tried to get it working at work, I received the following error :

Code:
nHibernateTestApp.Tests.GenerateSchema_Fixture.CanGenerateSchema:
NHibernate.HibernateException : Login failed for user 'xxxx\xxxx'.
  ----> System.Data.SqlClient.SqlException : Login failed for user 'xxxx\xxxx'.


I am logging on with Windows Authentication cause thats how we work :) I also changed the username appropriately ofcourse and the password should be empty. Let's just assume SQL Authentication is not an option. What do I change in my connection string? At the moment the format is (I am using SQL Server 2005) :

Code:
<property name="connection.connection_string">
      Server=DOMAIN\SERVERNAME;Initial Catalog=DBNAME;User Id=DOMAIN\USERNAME
</property>


Also, is it possible to use nHibernate with another protocol than Named Pipes (it is also not available...), like TCP/IP for example?

Thanks in advance.

Edit : Perhaps I was too fast - I just got home and tried without Named Pipes and it worked fine. Am I doing something wrong with the username/password combination..?

Update : Pah, problem solved - and I do feel kinda dumb for it. I completely forgot there's a thing called

Code:
Integrated Security=SSPI


Sigh.


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

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.