Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select for read only
Message
 
 
To
24/05/2005 12:55:10
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
DB2
Miscellaneous
Thread ID:
01017135
Message ID:
01017474
Views:
15
>hi, i need to perform continuos select to find some data, but db2 is returning this cursor with modifications capability and i just need data for read only.
>If i use sqlexec(conn,"select * from xtab1 where codigo='001'") then this cursor return in 1 min. aprox, but if i use sqlexec(conn,"select * from xtab1 where codigo='001' for read only") this cursor return in 10 secs aprox. and reading db2 documentation, every select that i use is asumed by read write by db2 and uses more resources from server.
>Is there some instruction or "set " command in vfp or db2 to change the way of db2 return the cursor? i need cursor for read only.
>Thanks in advace.

I'm not familiar with DB2 but VFP wouldn't know anything about how DB2 works so the setting may be (if there's any) on the DB2 or DB2 ODBC side.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform