分享

使用的 SQL Server 版本不支持数据类型“datetime2”解决办法

 ThinkTank_引擎 2016-09-07

本文zhan章来源于 http://blog.csdn.net/soulzx/article/details/6756723 

错误原因,在使用ado.net entity的时候,entity使用的数据库是sqlserver 2008,但后来实际使用中使用的数据库是sqlserver 2005
使用的 SQL Server 版本不支持数据类型“datetime2”

The version of SQL Server in use does not support datatype ‘datetime2
解决办法
Open your EDMX in a file editor (or “open with…” in Visual Studio and select XML Editor). At the top you will find the storage model and it has an attribute ProviderManifestToken. This has should have the value 2008. Change that to 2005, recompile and everything works.

就是打开你的edmx文件,搜索ProviderManifestToken值,改为2005就ok~~~~~~~~~

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多