title: System.ArgumentException: The version of SQL Server in use does not support datatype 'datetime2
body: <p>I have just uploaded a new version of code to my server and got this error bug that i cannot understand and don't know how to solve - I had no changes with datetime2 - I don't even have this word in my code syntax.
  Do you know what that means?</p>
  <p>An error occurred while executing the command definition. See the inner exception for details:</p>
  <blockquote>
  <p>InnerException: System.ArgumentException: The version of SQL Server in use does not support datatype 'datetime2'.</p>
  <p>at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)</p>
  <p>at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)</p>
  <p>at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)</p>
  <p>at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)</p>
  <p>at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)</p>
  <p>at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)</p>
  <p>at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)</p>
  <p>at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior</p>
  </blockquote>