Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL datatype VARCHAR
Message
From
03/12/1998 17:02:34
 
 
To
03/12/1998 16:55:40
Swen Nielsen
Squire Sanders & Dempsey
Cleveland, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00163863
Message ID:
00163866
Views:
28
Hi Swen ---

I've had that happen to me before when using the View Designer to create a remote view from SQL Server. A solution is to use DBSETPROP() to change the datatype to Character as such:

OPEN DATABASE mydatabase
=DBSETPROP(remoteview.fieldname,"FIELD","DataType","C(80)")
CLOSE DATA

>Hi... VFP 5.0 SP3 SQL6.5
>I have a remote view pointing to a SQL6.5 table. The SQL table has a field defined as varchar(80). In my VFP5.0 view it appears as a memo. I scatter the memo field. Modify it. Then do an UPDATE on the view. I get the error:
> Connectivity error:.....Implicit conversion from datatype 'text' to 'varchar' is not allowed. Use the CONVERT function to run this query.
>
>I get this error when I try to move off that row in the view.
>
>SO... How do I update a varchar type field on a SQL table?
>
>Thanks
>-swen
>SNielsen@ssd.com
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform