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: UDL File in Connection String?
PostPosted: Tue Sep 01, 2009 11:01 am 
Newbie

Joined: Thu Jul 23, 2009 4:14 am
Posts: 2
Hello,

I have an NHibernate application that shares a SQL Server database with other (non-NHibernate) applications on the same server. The other applications use a UDL file to specify their database connection, and it would be nice if NHibernate could use the same.

I've seen reference to connection strings like "File Name=filename.udl", but this fails in my configuration. I'm not sure if this is totally invalid, or just invalid for the kind of connection I'm using.

The original configuration was like this:

<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.connection_string">Data Source=XXSQL1\DEV;Initial Catalog=XXXXXDEV;Integrated Security=False;User Id=xxxxx;Password=xxxxxxxxx</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>

Can anybody help?

Chris


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.