- 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"
My daily notes about interesting things about programming: WCF, ASP.NET, MVC, Android, IOS, SQL, Design, Algorithms
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Hey!
Let me know what you think?