Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 app and TLS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676383
Message ID:
01676396
Vues:
30
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform