We have an application which is running on NHibernate.3.3.3.4001.
We have decided to upgrade from SQL Server 2008 R2 to SQL Server 2014.
Previously, we had the following the fluent configuration :
var databaseConfiguration = MsSqlConfiguration.MsSql2008.ConnectionString(connectionString)
.Dialect<MsSql2008Dialect>();
databaseConfiguration = databaseConfiguration.Driver<Sql2008ClientDriver>();
I have tested that the application works fine with this configuration when I connect to an instance of a SQL Server 2014 database.
How is it possible that I can use the 2008 driver and dialect while connecting to a 2014 database?
Is there any complication that may arise in the future that I am overlooking?
Is there support for 2014 driver and dialect in a higher version of NHibernate?
The following features depend on the dialect used.
Question #1: As MSSQL 2008 has less features and MSSQL 2012 only adds new features the older driver can be used.
Question #2: You loose some optmizations that I described above.
Question #3: NHibernate 4.0 adds MSSQL 2012, currently no dialect for MSSQL 2014 exists. This is definitely not a big issue as many of the MSSQL 2014 Features are irrelevant/transparent for the OR-Mapper.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With