SqlException - Column, Parameter or Variable

SqlException - Column, parameter, or variable #16: Cannot find data type datetime2.

Solution

This error occurs when you are using an SQL Server 2005, which is not supported. You will at least need SQL Server 2012.