SQL Server 2012 : The version of SQL Server in use does not support datatype 'datetime2'
问题 While executing a stored procedure created in SQL Server 2008 R2 in SQL Server 2012 and retrieving the data through an Entity Data Model, this error occurs: The version of SQL Server in use does not support datatype 'datetime2' The stored procedure is executing successfully in SQL Server Management Studio 2012. But the issue is when coming back to the Entity Data Model. Anyone encountered this kind of an issue?? 回答1: What is the compatibility level of that database you're running against?