ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
2010-07-19 12:05
751 查看
在刚接触的MVC2 Sample(NerdDinner)中,我把SQL2008的数据库转为SQL2005后
出现了
The version of SQL Server in use does not support datatype 'datetime2'.
其问题产生的原因是SQL2005没有该数据类型 datetime2
然后GOOGLE一翻找到答案
发生这个问题的主要原因是*.edmx中可以设置一个数据库版
<Schema Namespace="NerdDinnerModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
改为
<Schema Namespace="NerdDinnerModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
即可
出现了
The version of SQL Server in use does not support datatype 'datetime2'.
其问题产生的原因是SQL2005没有该数据类型 datetime2
然后GOOGLE一翻找到答案
发生这个问题的主要原因是*.edmx中可以设置一个数据库版
<Schema Namespace="NerdDinnerModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
改为
<Schema Namespace="NerdDinnerModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
即可
相关文章推荐
- Error: The version of SQL Server in use does not support datatype 'datetime2'
- 海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
- The version of SQL Server in use does not support datatype 'datetime2'.
- 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
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- The server does not support version 3.1 of the JEE Web module specification.
- 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.
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- Description Resource Path Location Type Java compiler level does not match the version of the in...
- The server does not support version 3.1 of the JEE Web module specification.
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- MySql 执行语句错误 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- 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.
- The server does not support version 3.1 of the JEE Web module specification.
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- Fix the error of ""Server does not support secure connections. " ?" when sending email
- ERROR tool.ImportTool: Import failed: java.io.IOException: Hive does not support the SQL type for co