title: How can I have NHibernate only generate the SQL without executing it?
body: <p>I know how to log the SQL to log4net/NLog/trace window at runtime with the <code>show_sql</code> configuration option.</p>
  
  <p>What I'm looking for is a way to give a <code>Query&lt;T&gt;()</code> to NHibernate retrieve the generated SQL.</p>
  
  <p>I've looked through the Persister class, the Drivers, different Interceptors and Events. There are so many places to look, even narrowing down my search would be of great help.</p>