Date types in the .NET Framework are supported with SQL
Server databases, but you have to be aware of the range of values. For
instance, the .NET Framework supports a minimum date value of 1/1/0001, which
is not supported in SQL Server.
In SQL Server, the datetime data type minimum value is
1/1/1753 and the smalldatetime data type minimum is 1/1/1900. In the maximum
mindset, smalldatetime's value does not fit within the DateTime.MaxValue
property range.
If a date outside this range is passed in, a DateTime
overflow exception is thrown, which is obviously an issue with data conversion.
In addition, the string type does not have any length restrictions, which are
not easily catchable unless manually validated.