Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return Empty date from Sql Table, if value null
Message
 
 
À
21/01/2006 23:49:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01089184
Message ID:
01089186
Vues:
10
You cannot return date from SQL Server, only datetime and it doesn't support empty dateime.

>I m trying to retrieve date and code from a sql database,
>and the condition is that if date filed is null retuns an empty date value,
>the satamentcode is similar to like this
>
>
>Select inv_Code, Isnull(inv_date, {})
>
>
>but it gives error
>
>and try this way also
>
>
>dDate  = Ctod('  /  /    ')
>Select inv_Code, Isnull(inv_date, dDate) And
>
>
>Again gives error
>
>
>Select inv_Code, Isnull(inv_date,' ')
>
>
>(This works fine but, Automatically storing very old random dates.
>i need empty dates for checking report in datewise conditions.)
>
>Anybody help me how to solve this probs.
>
>Thanks in Advance
>
>With Thanks and Regards
>Abdulla
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform