In my sql database all my nullable dates are getting 1/1/1900 inserted. I don't want this. I am using a web based form with asp. How do I change this default. I am just learning and can't quite get things to work right. thanks
It's because you are putting 0 instead of null in the field.
A datetime is held as the number of days from 1 jan 1900 so 0 will give you that date.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.