473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

adUseClient


Gentlemen,

I still don't understand why... But the only way MySql works is if you
set rstTable.CursorLocation = adUseClient. (if it's not set it won't
..Update, load a grid, doesn't know .RecordCount etc.) Is there any way you
can set the a global default to adUseClient?

Jul 20 '05 #1
1 3049
Joel wrote:
Gentlemen,

I still don't understand why... But the only way MySql works is if you
set rstTable.CursorLocation = adUseClient. (if it's not set it won't
.Update, load a grid, doesn't know .RecordCount etc.) Is there any way you
can set the a global default to adUseClient?


I couldn't find any example of setting adUseClient in a global way, only
on a per-RecordSet basis.

FWIW, the issue you're facing is pretty common to client/server RDBMS's,
not just MySQL. The client can't get the RecordCount until it has
downloaded the full result set. That's effectively what adUseClient
does, from what I infer (I'm not an ADO user).

One reason for this limitation is that client/server applications often
deal with large result sets, which might exceed memory, so they are
prepared in batches instead of holding the full result set in memory.

So be careful about using adUseClient, if your result sets can grow to
be huge; you might choke your network as it downloads, or you might hit
your client's memory capacity, or downloading the result set in one
batch will cause a delay in your client application.

One commonly used workaround is to run a SELECT COUNT(*) query to fetch
the number of records.

Regards,
Bill K.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bernard André | last post by:
Hi All, context: I am using Access 97 tablkes with VB. I can see records in the MDB, using Adodc and datagrid. No problem. But when doing: rsprivate.AddNew rsprivate!For =...
5
by: hkadhim | last post by:
hi all, i am using the following: Public Sub Main() Try 'set the ado connection string Dim strConnection As String = "Provider=" & "Microsoft.Jet.OLEDB.4.0;" & "Data...
3
by: viviane lima - * - * - | last post by:
Also idea ? how to use ASP for working .DBF files ? Please help me .. thanks Vivian
0
by: belacyrf | last post by:
Here's the code: ------------------------------------------------------------------- accessID = request("accessID") strSQL = "SELECT * From PendingAccRequests Where AccessID = "&accessID ...
2
by: wolverine1654 | last post by:
I have an application that we are moving to a 2003 server using IIS6. Currently, it works fine with IIS5 on a NT server. When I try to log into the application and connect to an Oracle DB, I get...
1
by: Ray Holtz | last post by:
I have a database in Access 2003 (Access2000 file format). There are two tables that are being used: Employees and Items. It is linked by the Employee field so that one employee can have many...
13
by: berry | last post by:
Hi, I want to sort all the data with the date which user key in. To store in the server, i use let the user to choose a date from the calendar. The format is 6/20/2007. But the date will be store in...
1
by: teenagelcruise | last post by:
hi, i have a problem with my code which is i cannot update and addnew data into the database but i can delete the data.plz give me an idea.this is my code that i wrote. <html> <head> <meta...
10
patjones
by: patjones | last post by:
Hi: This is pretty straightforward, but I can't get as straightforward an answer as I'd like in my books or in other forums. What's the difference between adUseServer and adUseClient when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.