> Hi,
>
> I am sure it is easy done, however I dont seem to be able to succeed to import > 255 characters from mySQLtable.memo field into a VFP.cursor with
>
>
>
lnRet=sqlstringconnect('Driver='+lcDriver+';Server='+lcServer+';Database='+lcDatabase+';User='+lcUser+';Password='+lcPassword+';Option='+lcOption)
>
> TEXT TO lcSQL noshow pretext 15 TEXTMERGE
> select id,
> CAST(Text as M) as Text,
> CAST(lastupdate AS datetime) AS lastupdate
> the MySQL ODBC from mySql
> ENDTEXT
>
> lnResult = sqlexec( lnRet, lcsql, "crsMyCursor")
>
>
>
> Anybody around to correct my syntax?
>
> Thanks,
>
> Jockey2
Does MySQL know what the datatype Memo is. The SQL command goes to the MySQL ODBC provider. When VFP sees it's more than 255 it would automaticslly use a Memo. Try withouyt CAST AS Memo.
-Anders