Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert with a date
Message
From
31/05/2006 14:34:27
 
 
To
31/05/2006 14:14:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01126253
Message ID:
01126263
Views:
22
>also i want to know, if my date is empty it will insert 01/01/1900. there is a way to put null of something else ???
>thansk
Yes, if date is empty SQL Server put 1 jan 1900 :-( That's why all our DateTime fields allow null, you could do something like this:
TEXT TO SQLCOMMAND NOSHOW PRETEXT 7
     INSERT INTO TB_ARINV (TR_ZEBRAINVID       ,TR_DUEDTE)
                   VALUES (<<ARINV.ZEBRAINVID>>,?IIF(EMPTY(ARINV.DUEDTE),NULL,DTOS(ARINV.DUEDTE)))
ENDTEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform