Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change between VFP 6 and 9 -- DateTime and Date
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Divers
Thread ID:
01048077
Message ID:
01048150
Vues:
52
>>>I may have been barking up the wrong tree. I converted the VFP memvar to type DateTime and still get the same error. (Which, again, does not occur in the VFP 6 version of the app running against the same SQL Server database). Here is the relevant info. Ndxfl1 is a remote view against a table by that name in the database. The remote view is populated correctly. The DateTime field is d_ate.
>>>
>>>The command:
>>>
>>>select d_ate=max(d_ate)
>>> from ndxfl1
>>> where ir_table=?nirfile
>>> and ir_type=?nir_type
>>> and d_ate<=?m.mdbegdb2
>>>
>>>The values, as captured in the debugger at the point of error:
>>>
>>>Nirfile = 1.00000000
>>>Nir_type = 1.00000000
>>>m.mdbegdb2 = {12/31/1899}
>>>
>>>The error message returned by SQL Server:
>>>
>>>Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 4: Incorrect syntax near 'd_ate'.
>>
>>I'm confused. If remote view is populated correctly, where error message comes from?
>
>Could it be that the view is already populated and the command that bombs is trying to do a SELECT into it?

I'm still not sure at which point you get the error.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform