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.000is not a validdatetimeand would fail anyway. How are you inserting this?datetime, I've something like this1900-01-01 00:00:00.000. I'm using INSERT query.