Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank DateTime field values and VFP OLE DB
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Blank DateTime field values and VFP OLE DB
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01235998
Message ID:
01235998
Vues:
85
Hi everyone,

Our company is writing a new application in .NET 2003 with the Mere Mortals framework, and we have to include a componenet that queries against VFP tables via OLE DB 6.0.

Basically, the .NET component will query against a free VFP table to get any records that have a nonzero value in the Status field (integer) and a blank datetime value in the DTRANSMIT field. For whatever reason, the query returns 69 records via OLE DB, but if I run it in VFP against the same table, I get 2428 records.

Here's the SQL statement we're trying to run through the OLE DB connection:

select * from hcfahold where (status <> 0) and Cast(dtransmit as d) < {^'1900-01-01'}

If anyone has any insight to get OLE DB to return the same number of records as VFP, I would sincerely appreciate it.

Thanks,

Ben Holton
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform