Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 do I need adUseClient to use adOpenStatic?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bjlt
Senior Member

1144 Posts

Posted - 16 August 2003 :  03:49:02  Show Profile
1. I see some codes that use adUseClient if later it uses adOpenStatic. Do I have to do that all the time? or it's ok to use adUseServer?
Or how should I choose it if I want to use adOpenStatic? when shall I use adUseClient?

Thanks in advance.


Edited by - bjlt on 16 August 2003 03:49:51

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 16 August 2003 :  10:02:56  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
adUseClient uses the clients processor(I think) to do some of the recordset processing, so it saves resources on the server. Distributes the workload basically.

I almost always use it. It does make a difference.

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

ADSaunders
Starting Member

United Kingdom
22 Posts

Posted - 19 August 2003 :  05:38:38  Show Profile
quote:
Originally posted by davemaxwell

adUseClient uses the clients processor(I think) to do some of the recordset processing, so it saves resources on the server. Distributes the workload basically.

I almost always use it. It does make a difference.


Not quite true - I think, The client cursor is hosted in the client that opens the ADODB connection, and with most ASP pages (Including Snitz) we all use
Server.CreateObject("ADODB.Connection")
Don't we?
Therefore it boils down to:
adUseServer - Cursor resides in the MySQL server
adUseClient - Cursor resides in the web server.
If they're both the same (as in my situation) There is no load sharing going on. However, there is a difference. If you read the MySQL ODBC documentation you will find that it does not support certain types of access unless you use a client cursor.
Regards .. Alan

Edited by - ADSaunders on 19 August 2003 05:39:38
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 19 August 2003 :  06:02:27  Show Profile  Visit HuwR's Homepage
strictly speaking, you should only use client cursors if the underlying server cursor does not support the operation you are trying to do, server cursors are much more efficient than client cursors and return only the records required, where as a client cursor returns the whole recordset to the client before deciding what to display.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 19 August 2003 :  06:07:22  Show Profile  Visit HuwR's Homepage
In answer to bjlt's original question, if you use a client cursor (adUseClient) then you can only open a static cursor (adOpenStatic) you can not use adUseClient with any other type of cursor.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07