Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime fields in SQL Server
Message
De
11/09/2000 17:55:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00415119
Message ID:
00415163
Vues:
21
>>>I'm trying to extract data from a SQL 7.0 table using sqlstringconnect. If I issue lcsql='select * from arrest ' for the sql select code, it works. However, I want to pull data for one specific date. If I try "select * from arrest where date_arrest like 09/01/00", I get no return. I've tried wildcards and it ain't happening. Would one of you SQL folks care to shed a little light on me?< G >
>>
>>Check out CONVERT() in SQL Books Online, e.g.
>>
>>select * from arrest
>>where convert(char(10), date_arrest, 101)="09/01/2000"
>
>
>Woiked like a charm! < G >
>
>Thanks,

You're welcome

I'm was raised in your neck o' the woods, so I'm still kind of a Memphian ( or is that Memphibian <g> ) at heart.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform