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: SQL Express database connection problem
PostPosted: Thu Sep 18, 2008 10:06 am 
Newbie

Joined: Thu Sep 11, 2008 9:27 am
Posts: 2
I am having a problem releasing the connection to an attached SQL Express database file. When I run the 1st query against the database, NHibernate opens the connection. There is another spot in the system where users have the option of encrypting the database mdf and ldf files so they can be sent to another company for validation. Unfortunately, that portion will not work because NHibernate is not releasing the connection to the database. I've tried the following statements but nothing seems to solve the problem:

Session.Connection.Close();
Session.Disconnect();
Session.Close();
Session.Dispose();

What do I have to do in order to get NHibernate to release its exclusive usage lock on that mdf file?


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.