Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Default Date
Message
 
 
À
10/04/2001 12:24:39
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00494059
Message ID:
00494062
Vues:
24
>i am using a SQL Server database.
>
>i have a view that reformats a sql - datetime datatype to a vfp date datatype.
>
>the default value in sql is null. when i save a record with an empty date it is automatically saved as 01/01/1900.
>
>is their a way to get around this problem. it may be something with ODBC, but we are not sure.
>
>tia
>frank

Blank dates are different than NULL dates. When VFP adds a new record, the value in the date field is empty, not NULL. When the view passes it back to SQL, the empty date gets translated. Make sure the date field in the view is set to NULL. You can replace the value explicitly or create a default value for it.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform