Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USe Ole DB Provider in Crystal Reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01236614
Message ID:
01236710
Vues:
14
>When I use the Ole DB provider for Visual Foxpro within Crystal reports, I get an error when using a date field. The error message contains the following:
>
>Failed to retrieve data from the database.
>Details: ADO Error Code: 0x80004005
>Source: MS Ole DB provider for Visual Foxpro
>Description: SQL: COlumn 'DATETIME' is not found.
>Native Error: 806
>
>When I view the generated SQL select statement, it is taking the date field and performing the following:
>
>`Schedule`.`sched_start`=CONVERT(DATETIME, '06-28-2007', 110)
>
>Does anyone know if a work around for this?
>
>Thanks you in advance.

This Select is generated for SQL Server not for VFP. VFP have no such function like convert.
Change it to

`Schedule`.`sched_start`=DATE(2007,6,28)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform