-->
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: Where does show_sql go?
PostPosted: Thu Jul 23, 2009 4:26 am 
Newbie

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

I'm building a web application in Visual Studio 2008 using NHibernate. This is the NHibernate section in my Web.config:

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="connection.connection_string">*****************************</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>

Where exactly is the SQL shown? I'm running the solution within VS. It doesn't appear in the VS output window, and I've searched in every place that seems reasonable for log files. I have log4net.dll referenced in most of the projects in the solution.

I also can't find any SQL output when I run unit tests. In this case the configuration is built programmatically using NHibernate.Cfg.Configuration, but the properties are identical.

Can anybody help?

Chris


Top
 Profile  
 
 Post subject: Re: Where does show_sql go?
PostPosted: Thu Jul 23, 2009 7:35 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Afaik, you have to set log level to DEBUG in your log4net configuration.

_________________
--Wolfgang


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.