Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataType in SPT
Message
From
29/10/2003 05:30:28
 
 
To
28/10/2003 13:36:48
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00843672
Message ID:
00843959
Views:
24
Hi Grigore,

Correct ODBC syntax for this is:
SELECT { fn CONVERT( GETDATE(), SQL_TYPE_DATE ) } date
,  { fn CONVERT( GETDATE(), SQL_TYPE_TIME ) } time
,  { fn CONVERT( GETDATE(), SQL_TYPE_TIMESTAMP ) } datetime 
But SQL Server not support conversion to
SQL_TYPE_DATE and SQL_TYPE_TIME ( read on BOL ).

On ODBC precess it return identical
SQLColAttribute ( VFP use old ODBC api interface )
or SQLDescribeColW ( on SQL Query Analyzer ).

With this values, VFP cannot build a Date field,
because ODBC return always to a SQL_TYPE_TIMESTAMP,
VFP map it to a SQL_C_TIMESTAMP, and build a datetime field.

Then,
if VFPT not implement ( on VFP9 ) a fields definition for spt cursors
( a 4-parameter string for SQLEXEC() and 3- parameters for SQLMORERESULT() ) , like RV and CA ( plus nullable ),
is impossible build a spt VFP cursor with SQL Server as backend.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform