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:
01676396
Views:
32
>>>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
>
>Thank you! I will try this but I need to replace the ODBC with the Native Client first.

No you should use just proper SQLSTRINGCONNECT()
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