Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank datetime field
Message
 
To
17/10/2006 22:52:59
Arjun Bagojikop
Dynamic Super Software
Sangli, India
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01162805
Message ID:
01162833
Views:
18
>hi
>friends
>i am vfp programmer using sql 2000. i have created cursoradapter in my dataenvironment using cursor in from. my user fill blank date
>after cursor updated store datetime in sql '01/01/1900 12:00:00 am'.
>user want to store blank datetime i have try to save null value. when user adding new record default null but user go on datetime text box mistakly type date. he want no need date here,he arase date and saveing record but datetime have been stored in sql
>'01/01/1900 12:00:00 am'.
>
>Plese Suggest me how can i stored blank date in sql 20

What I use is to allow DateTime fields in SQL Server to allow NULL and all blank dates from VFP goes as NULL in VFP. Of course when you need function to convert you empty date fields to NULL when you send them back. Becuase I use CAs to manage remote data I have a method in my base class which do that and just use ConversionFunc property of CA for all date fields.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform