Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Link Server + VFP Data
Message
 
 
À
27/05/2005 00:34:51
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
01017988
Message ID:
01018059
Vues:
17
Try
'SELECT CAST(EVL(chkdate, NULL) AS datetime)
        FROM paytran where !deleted()')
>yes serg i use the OLEDB driver for VFP 9.
>
>Still this code has an error result
>
>Select   *
>  FROM OPENQUERY( LNK_VINS,
>     'SELECT CAST(EVL(chkdate, NULL) AS date)
>        FROM paytran where !deleted()')
>order by 1
>-------------
>Server: Msg 8114, Level 16, State 10, Line 1
>Error converting data type DBTYPE_DBDATE to datetime.
>
>
>
>
>I serg resolve it but i think it not a good idea. I really what cause the error.
>
>Select *
>FROM OPENQUERY( LNK_VINS,
>   'SELECT
>	   ALLTRIM(STR(YEAR(chkdate))) + "-" + ALLTRIM(STR(MONTH(chkdate))) +"-" + ALLTRIM(STR(Day(chkdate))) as chkDate FROM paytran where !deleted() ')
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform