Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating SQLserver *text* datatype in VFP view
Message
 
À
28/11/1996 20:56:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00013797
Message ID:
00013837
Vues:
33
>In my remote view - I am having trouble updating SQLServer fields of "text" datatype if the data is longer than 255.
>I get an error message telling me to use the "Convert" function. I believe it is referring to an SQLServer function - can I do the equivalent somehow in VFP syntax or with SQL syntax somehow?

Yes that function is in T-SQL, you are getting an ODBC/SQL Server error. Like the memo fields in VFP, text fields in SQL server have to be handled a little differently. In SQL, you cannot have a char variable longer than 255 characters, thus, when it sends the SQL command via ODBC, it chokes. Just code it like you would a memo field, and you should be OK.

HTH,
Scot.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform