[SQL] V4MD 2 - Version 2.0.2
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Apr 20 22:56:34 CDT 2005
On 4/20/05 10:45 PM, "Christopher Bishop" <CBishop at alfred.com> wrote:
> I am using either a client connection or an IP connection, depending on
> what the user chooses. I would like to use the same statement for both.
> i.e. uCursor = db.sqlselect("select * from updates", variable1,
> variable2)
>
> Is there any way to do this, or will I need the following:
> if gServerVersion = TRUE then
> uCursor = db.sqlselect("select * from updates", #kServer, #kRead)
> else
> uCursor = db.sqlselect("select * from updates")
> end if
RULE is next:
1) You can use #kServer in both cases.
with this you can get ReadWrite cursor
for LOCAL db this also works. Just #kServer and #kClient cursors
are the same. Except that again, #kClient cursor is ReadOnly.
2) you can use kClient in both cases,
just cursor will be ReadOnly always
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list