Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can CursorAdapter be disconnected?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01471214
Message ID:
01471224
Views:
63
>I noticed that you use code (unfamiliar to me):
>
>
>* Create recordset
>oRS = oCon.Execute(lcSql)
>
>
>Is this (above) better approach than setting CA properties .DataSource and .SelectCmd?
>
>
>*  example
>.DataSource = CREATEOBJECT('ADODB.Recordset')
>.SelectCmd = "select * from table"
>
>
>>Detach the cursor before killing CA http://www.berezniker.com/content/pages/visual-foxpro/converting-ado-recordset-cursor-cursoradapter
>>
>>>

As you see in Sergey's code, there is no other CA properties set.
That code is just a replacement of the SQLEXEC(), but using ADO not ODBC.
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