Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to supply Date value for adDBTimeStamp parameter
Message
De
10/10/2002 16:55:27
 
 
À
10/10/2002 15:20:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00710022
Message ID:
00710069
Vues:
15
woops... never mind, found it. The VFP Ole DB Provider Data Support doc says that VFP date type DateTime maps to Ole DB type DBTYPE_DBTIMESTAMP. Since the Oracle Date type maps to DBTYPE_DBTIMESTAMP, I figured the VFP DateTime() function is good to supply the value. Works great. Great idea these Ole DB types.

** Set up adDBTimeStamp IN parameter
Param0 = oCom.CreateParameter("v_from_date",135,1,30)
oCom.Parameters.Append(Param0)

** Set the val
oCom.Parameters(0).Value = DATETIME(2002,10,10)
Rod Poujade
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform