How to set default null value in to a date field in sql server 2000? -
How to set the external zero value in a date field in the table, if the parameter with the date value is zero?
Make sure you are actually going through a tap, I think you are going through an empty string Are there. If you pass in an empty string, you get the value 19 00-01-01 00: 00: 00.000
which you will see. The tap will be empty and there will be no change in any date.
Try this test code:
Announce @x data time selection is zero, set xx @ x = '' is 'empty string', select @ X
Output:
------- ---------- -------- ----- Zero is zero (1 row is affected) --------------- ----------- ---------- - Empty String 1900-01-01 00: 00: 00.000 (1 line is affected)
Comments
Post a Comment