I want to update datetime data on sqlserver but DBNull.Value writes 1900-01-01 00:00:00.000 to my database. I want it NULL. How can I do?
Thanks in advance.
-
This might help stackoverflow.com/questions/19641813/… ?b2zw2a– b2zw2a2014-11-12 13:01:02 +00:00Commented Nov 12, 2014 at 13:01
-
I think it is about Insert query. I want to use UPDATE query.1teamsah– 1teamsah2014-11-12 13:08:19 +00:00Commented Nov 12, 2014 at 13:08
-
Is your column nullable in the database?b2zw2a– b2zw2a2014-11-12 13:10:39 +00:00Commented Nov 12, 2014 at 13:10
-
Allow Nulls option is checked in database.1teamsah– 1teamsah2014-11-12 13:14:17 +00:00Commented Nov 12, 2014 at 13:14
Add a comment
|