-->
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: Two databases with different user/password!
PostPosted: Fri Mar 30, 2007 10:32 am 
Beginner
Beginner

Joined: Wed Jun 28, 2006 2:03 pm
Posts: 22
Hello all !

I´m using multiple databases on my project defining it in xml schema tag :

Code:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" schema="BD_2.dbo" assembly="BLL" namespace="BLL">


And in my config I have:
Code:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">Server=Persist Security Info=False;user id=xxx; PWD=xxx;Initial Catalog=DB_1;Data Source=SERVER\DEV</property>
      <property name="connection.isolation">ReadCommitted</property>
      <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
      <property name="show_sql">true</property>
      <property name="use_reflection_optimizer">true</property>
      <property name="bytecode.provider">lcg</property>
      <mapping assembly="BLL"/>
    </session-factory>
  </hibernate-configuration>


All works fine, because my user xxx have access to both database (DB_1 and DB_2) ...
But, I need two different users ... How can I configure that?

cya


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.