473,809 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

adUseClient


Gentlemen,

I still don't understand why... But the only way MySql works is if you
set rstTable.Cursor Location = 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 3063
Joel wrote:
Gentlemen,

I still don't understand why... But the only way MySql works is if you
set rstTable.Cursor Location = 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
8199
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 = rsusers!identification rsprivate!Receivedon = ladate
5
2014
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 Source=C:\MyFolder\data1.mdb;" & "Jet OLEDB:Database Password=" & ""
3
12312
by: viviane lima - * - * - | last post by:
Also idea ? how to use ASP for working .DBF files ? Please help me .. thanks Vivian
0
1532
by: belacyrf | last post by:
Here's the code: ------------------------------------------------------------------- accessID = request("accessID") strSQL = "SELECT * From PendingAccRequests Where AccessID = "&accessID 'Create the Recordset object and run SQL statement Set accRS = Server.CreateObject ("ADODB.Recordset") accRS.Open strSQL, objConn
2
6834
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 the following error: ADODB.Connection error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Here is the code that is causing the error. The line where the error is occuring is...
1
5914
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 items. I have a VB6 application that is tied into this database using an ADODB.Connection and uses two ADODB.Recordsets: rsEmployees and rsItems. I can pull data from the DB into the app with both recordsets. But I can only change data in rsItems...
13
2668
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 the server in format 2007-06-20. When the user want to review his data, he choose from the calendar but the recordsource cannot find the data. What should I do? Following is my code. Please have look on it. Thanks.. Private Sub...
1
2469
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 http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Order Record</title> <meta name="Microsoft Border" content="tlb, default"> </head>
10
15033
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 using ADO to connect to a back end database? I've seen some comments in various places about performance differences, but since I'm new to ADO I think my main source of confusion lies in what the difference between using server and client resources...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7653
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.