Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to supply Date value for adDBTimeStamp parameter
Message
From
10/10/2002 16:55:27
 
 
To
10/10/2002 15:20:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00710022
Message ID:
00710069
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform