You must execute something like SELECT SERVERPROPERTY('productversion'),
but you must do it outside of NHibernate, because at this time you don't
have a Dialect (or you can use Sql2000Dialect, all SQL Servers from version
2000 support this).
RP
On Saturday, April 20, 2013 11:32:05 PM UTC+1, Sean Farrow wrote:
>
> Hi all,
>
>
>
> Ok, I’ve got a situation where I’ve got a valid connection string, I now
> want to check what version of sql server the database resides on. Is there
> any way of doing this without creating a session/session factory? Or will I
> have to drop to ado.net?
>
> The reason for this is I’d like to automatically determine the NHibernate
> dialect.
>
> Cheers
>
> Sean.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.