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:
01190594
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>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])
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform