Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime fields in MSSQL as Date in VFP
Message
De
07/12/2009 19:03:25
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01437969
Message ID:
01437978
Vues:
52
Can't they use datepart in the query?

>>Hi all
>>
>>My app is using MSSQL as DB. I need to create a cursor using SPT.
>>
>>Is there a way to convert datetime fields in MSSQL as date field in VFP cursor?
>>
>>Right now I have to do another SELECT with TTOD but this will slow performance as my cursor has some 300,000 records.
>>
>>I have tried the various CONVERT and CAST but there end up as Char field in VFP cursor.
>>
>>Is there any way to directly convert datetime fields to date fields with SQL Pass Thru?
>>
>>Your assistance and advice is really appreciated.
>>
>>Thanks & Best Regards
>
>No, as I just learnt reading this thread Re: Syntax for cursorsetprop to change field type Thread #1133437 Message #1133449
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform