ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
2010-07-06 13:40
786 查看
I genereated ADO.Net Entity framework edmx using SQL Server 2008 version. When i pointed my application to SQL Server 2005 with the same database schema got error saying SQL Server in use does not support datatype datetime2.
解决方法:2008 to 2005.
<
edmx:Runtime>
<!-- SSDL content -->
<
edmx:StorageModels>
<
Schema Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" >
</Schema>
</edmx:StorageModels>
- Enjoy
解决方法:2008 to 2005.
<
edmx:Runtime>
<!-- SSDL content -->
<
edmx:StorageModels>
<
Schema Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" >
</Schema>
</edmx:StorageModels>
- Enjoy
相关文章推荐
- 海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
- 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'.
- 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
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- 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.
- filegroup reference and partitioning scheme' is not supported in this version of sql server.
- No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClie
- The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not refere
- CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNet' (are you
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- Microsoft SQL Server Compact 4.0&&ADO.NET Entity Framework 4.1&&MVC3
- Service 'china' of type 'MapServer' does not exist or is inaccessible
- Microsoft SQL Server Compact 4.0&&ADO.NET Entity Framework 4.1&&MVC3
- Potential causes of the "SQL Server does not exist or access denied" error message
- MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT’
- Description Resource Path Location Type Java compiler level does not match the version of the in解决方法
- Work with XML Data Type in SQL Server 2005 from ADO.NET 2.0
- Fix the error of ""Server does not support secure connections. " ?" when sending email