- Right click edmx model
- Select edit with option
- select xml editor from the dialog menu
- Change ProviderManifestToken at the top to reference 2005 like this:
<Schema Namespace="YOUR_DBModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005"
Thursday, March 1, 2012
Tips: The version of SQL Server in use does not support datatype 'datetime2'
If you are using edmx model and you see this error, it means your database reference is not right. This happens when you update your edmx from another version of sql server and then run on different version.