Enable log4net: 
http://nhforge.org/wikis/howtonh/configure-log4net-for-use-with-nhibernate.aspx

You could also use the SQL Server Profiler.

On May 21, 4:32 pm, joelkeepup <[email protected]> wrote:
> HI, is there a simple way I can see the sql my active record calls
> generate?
>
> I tried:
>
> <activerecord isWeb="false" isDebug="true">
>     <config>
>       <add key="hibernate.connection.driver_class"
> value="NHibernate.Driver.SqlClientDriver" />
>       <add key="hibernate.dialect"
> value="NHibernate.Dialect.MsSql2005Dialect" />
>       <add key="hibernate.show_sql" value="true" />
>       <add key="hibernate.connection.provider"
> value="NHibernate.Connection.DriverConnectionProvider" />
>       <add key="hibernate.connection.connection_string" value="Data
> Source=.;Initial Catalog=ContentStoreGlobal;Integrated Security=True" /
>
>     </config>
>   </activerecord>
>
> In my web.config, but didnt seem to do anything.
>
> thanks
> Joel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to