Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 app and TLS
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01676383
Message ID:
01676392
Views:
38
>I am sorry for my mistake. When I wrote MEMO I meant TEXT.
>I didn't know what can "map" VARCHAR(MAX) to VFP Memo. I will have to test it.
>I will have to find the Native Client 11 (I don't know if I have it and don't know how to check if I have it).
>Thank you!
LOCAL oTest AS CursorAdapter

oTest = CREATEOBJECT("CursorAdapter")
oTest.DataSourceType = "ODBC" 
oTest.DataSource     = SQLSTRINGCONNECT(.....)
oTest.BufferModeOverride = 5
oTest.FetchSize = -1
oTest.UseCursorSchema = .t.
oTest.MapBinary = .t.
oTest.MapVarchar = .t.
oTest.Alias = "crsTest"


WITH oTest.CursorSchema NOSHOW PRETEXT 15
     TheVarcharMaxField M
ENDWITH

WITH oTest.SelectCmd NOSHOW
     SELECT TheVarcharMaxField FROM YourTable
ENDWITH

oTest.CursorFill()
BROWSE NORMAL
NOT TESTED!!!
No errorhandling
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform