Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL datetime --> VFP date in a query
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00630844
Message ID:
00630847
Vues:
23
Hi!

No, because SQL Server does have only DateTime data type and no separate Date type as in VFP. You can do mapping in the VFP by using a remote view - in remote view designer open the field propertis, select the datetime field and change its type to date. When view opened, the query result in view will be mapped to specified field types if possible. Unfortunately, there are no way to do something similar with SQL Pass-Through cursors.

HTH.

>Hallo all
>I wonder if somebody have a solution on a dateproblem.
>I want the datepart of a datetimefield from an SQL server.
>Something like this:
>
>select "datepart of a datetimefield" as "datefield" from MySQLtable
>
>I hope you understand my question, I have looked everywhere for a simple solution on this.
>Of course I can convert the datetimefield in VFP later, after the SQL query is done, but are there some way to do the convert direct in the query.
>
>Thanks in advance
>/Kjell
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform