The version of SQL Server in use does not support datatype 'datetime2'.
2014-12-09 21:16
911 查看
使用的 SQL Server 版本不支持数据类型“datetime2”解决办法
错误原因,在使用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~~~~~~~~~
错误原因,在使用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~~~~~~~~~
相关文章推荐
- 海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- Error: The version of SQL Server in use does not support datatype 'datetime2'
- Error: The version of SQL Server in use does not support datatype 'datetime2
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.
- Description Resource Path Location Type Java compiler level does not match the version of the in解决方法
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- The server does not support version 3.1 of the JEE Web module specification.
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- JAVA+ Proxool+ SQLserver 2008 “signer information does not match signer information of other classes in the same package”
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- Description Resource Path Location Type Java compiler level does not match the version of the in解决方法
- Could not store transport type data for Receive Location 'Recv.Loc' to config store. Primary SSO Server 'Sql-server' failed. The external credentials in the SSO database are more recent.
- The server does not support version 3.1 of the JEE Web module specification.
- eclipse部署Tomcat6 : The server does not support version 3.0 of the JEE Web module specification
- The server does not support version 3.1 of the JEE Web module specification.
- Description Resource Path Location Type Java compiler level does not match the version of the in...