Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What Data gets transferred using an SQL query and an Access Database

Status
Not open for further replies.

gordonl

Programmer
Mar 15, 2001
17
0
0
GB
I have written a visual basic program that uses SQL statements to pull data from an Access 97 database.

The database connectivity I use is ADODB if this is relevant.

My question is what data gets passed down the line.

I have found if I have a large table with thousands of records then if I write an SQL statement to read one record (eg a couple of bytes), I find that 200,000 bytes gets transferred.

Subsequent, SQL statements do not pass any data down the line (eg the entire table), but the program can still use the data.

It looks as if although I have only asked for one piece of data, then the whole lot gets downloaded!! Is this how a client server database should work??

(I have a program installed that tells me how much data is being downloaded by my network card.)

My instinct tells me the data or indexes are being downloaded into a client side cache - but this is not what I want. All I want to go up is the SQL statement, and all I want to coem down is the resultant data.
 
That is exactly what happens. The problem is that you don't have client/server you have client/file. In order to get the server to respond intelligently, you need some software on it, which is where SQL Server and MySQL come in. They will transfer data bit by bit as you request records. Peter Meachem
peter@accuflight.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top