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.  [ 4 posts ] 
Author Message
 Post subject: show_sql does not show the queries
PostPosted: Thu Sep 03, 2009 4:26 pm 
Newbie

Joined: Thu Sep 03, 2009 4:12 pm
Posts: 4
Hi,

i am trying to show the sql queries made by nhibernate. I set the property show_sql=true. But when I run the app I get a Message:

Quote:
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rsm\3e05da59\3ade9176\assembly\dl3\c6815e54\008bb9fe_1522c901\NHibernate.DLL'


I am using VS2008 and the virtual server that VS has. I also unchecked the "Just my Code" option.

Any suggestion?

Thanks a lot


Top
 Profile  
 
 Post subject: Re: show_sql does not show the queries
PostPosted: Fri Sep 04, 2009 7:22 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Afaik you have to configure logging (log4net) to be able to use show_sql.

_________________
--Wolfgang


Top
 Profile  
 
 Post subject: Re: show_sql does not show the queries
PostPosted: Thu Sep 24, 2009 2:11 pm 
Newbie

Joined: Thu Sep 03, 2009 4:12 pm
Posts: 4
Thanks a lot for your answer.

I have been trying to configre log4net with some tutorials but it does not work.

Do you have any one or a link with a can solve my problem

Thanks again


Top
 Profile  
 
 Post subject: Re: show_sql does not show the queries
PostPosted: Fri Sep 25, 2009 2:11 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
http://nhforge.org/blogs/nhibernate/archive/2008/09/06/how-to-configure-log4net-for-use-with-nhibernate.aspx

_________________
--Wolfgang


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.