views:

29

answers:

1

Hi,

How can I see the SQL call generated and passed to Db by NHibernate?

I have in my hibernate.cfg.xml file this line:

<property name="show_sql">false</property>

any idea?

thanks

+4  A: 

Have you tried seting the "show_sql" config entry to true?

Mitch Wheat
@Mitch: You are right Mitch. I cahnged it. But I have missed the fact that I had to Rebuild my solution to make that xml changes active. So to set that to True worked fine! Thx!
burak ozdogan
No problem. feel free to accept/vote up.
Mitch Wheat
Check out the format_sql property to, which makes your sql output look nice and pretty.
Corey Coogan