I want to insert values into a SQL Server table, but every time I get
“Cannot insert the value NULL into column ‘ddod'” error.
[ddod] [datetime] NOT NULL
I’m not inserting NULL value, but 0000-00-00 00:00:00.000, because no datetime was chosen.
Is 0000-00-00 00:00:00.000 the same as NULL?
Thanks a lot for help
'0000-00-00 00:00:00.000'is not a validdatetimegives the following error
Do you have the following options off?
In that case it gets cast to
NULLinstead.Is there any reason you are not using
NULLanyway to represent the absence of a value rather than a “magic” sentinel value?