Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo to Char conversion
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01190592
Message ID:
01190601
Vues:
23
>>I have having a problem converting my SQL data into a CHR(254) field instead of a MEMO field when using SQLEXEC. I know how to do it using remote views, but can anyone tell me how to put my data into a CHR with SQLEXEC?
>>
>>Thanks in Advance...
>
>If the contents of the fields is less them 254 chars, you could try:
>
>TEXT TO lcSQL NOSHOW PRETEXT 15
>     SELECT CAST(MyField as Varchar(254)) AS MyField
>             ....
>     FROM .....
>ENDTEXT
>SQLEXEX(lnSql ,lcSQL,[MyCursor])
>
Borislav,
Thanks so much. That did the trick.
freddie
Frederick Kusin
NetBase Development Group
3746 Folsom Street
San Francisco, CA. 94110
www.netbasegroup.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform