Thanks Fabio for pointing me towards the Dialect. Yes I did change the
dialect from 2000 to 2005 when I upgraded from 1.2 to 2.0. Still don't
understand why you would need Row_Number in SQL 2005 to put limits on
a query. Anyways, my point of using the 2005 Dialect was so that I can
upgrade eventually to SQL 2008 server.
Also, I mentioned New_Id in my second post since I thought New_Id
would probably cause NHibernate to do a Row_Number, but even after
removing that I was still getting Row_Number in NHibernate logs. Hence
I said the "simplified version" in the first post.
Anyways, so this brings up two questions:
1. Can I use 2000Dialect with SQL server 2008 ? Also it would be great
if you can point me towards some documentation on the Dialects.
2. Can I use New_Id without using Direct sql from NHibernate ?
- AB