Update Error: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.

Problem:

“The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated.”

Solution:

One of the many reasons is due to insertion of a row with a null value for a non-nullable DateTime column.  For example, you may forget to assign a datetime value to your entity’s datetime column.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s