I've upsized a vfp 6.x dbc to sql server 2000 and am having a problem with dates. Null date fields in vfp migrate to sql server with no problem.
Our forms use the ms common calender control wrapped around a textbox and button so that when a user clicks the button, the calendar comes up, a user can select a date, and display it in the text box.
If a user leaves a non-required date field empty, instead of saving nulls in the sql server table, it saves the default sql server date. Then when I read back the record, instead of seeing empty dates, I see the sql server default date.
Is there any way to ensure that non-required, empty date fields will be saved to sql server as nulls?
I have a deadline for migrating several apps built around the same common classes, controls, etc and would appreciate any help as soon as possible. Thanks. Mike
Our forms use the ms common calender control wrapped around a textbox and button so that when a user clicks the button, the calendar comes up, a user can select a date, and display it in the text box.
If a user leaves a non-required date field empty, instead of saving nulls in the sql server table, it saves the default sql server date. Then when I read back the record, instead of seeing empty dates, I see the sql server default date.
Is there any way to ensure that non-required, empty date fields will be saved to sql server as nulls?
I have a deadline for migrating several apps built around the same common classes, controls, etc and would appreciate any help as soon as possible. Thanks. Mike