Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQLserver *text* datatype in VFP view
Message
 
To
28/11/1996 20:56:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00013797
Message ID:
00013837
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform