Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT cursors vs. cursors from local SQL
Message
 
To
30/07/2009 15:17:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01415555
Message ID:
01415557
Views:
56
>Why is it that when you get a cursor from SqlExec() using SQL Pass-through calls, you get a ReadWrite type of cursor back,

Remote views are always writable, and that's what SQLEXEC() returns.

> If you build a SQL Select command against local tables, you have to specify "ReadWrite" in the SQL command?

Well, that was SELECT is meant to do originally, isn't it: Returning a result set.<g> Practically, READWRITE made it into the language much later. Changing the behavior of the SELECT command wouldn't be a good idea, as you can see from all the discussion around the SET ENGINEBEHAVIOR command.

> What would it hurt to just always get a ReadWrite cursor back from local Select calls?

Optimization is a big reason. A lot of application wouldn't suddenly slow down dramatically when all result sets are created with READWRITE.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform