While the Visual Basic application is querying the database can you log into
the MySQL via the mysql monitor and do a show processlist to see if the
query is executing? If not I would suggest you view the mysql error log or
set up Visual basic to throw and error when it is getting disconnected. 

-----Original Message-----
From: Greg Zimmermack
To: [EMAIL PROTECTED]
Sent: 6/30/04 9:13 AM
Subject: MySQL and VBquestion - problem with query that returns 100000+
records

I have an SQL which looks something like:

SELECT S.FirstName, T.CreateDateTime, T.TranDateTime, P.FirstName, 
P.LastName, D.DiagnosisIDString, T.CheckNumber, T.StmtDesc, 
T.ServPayAdjIDString, T.PatientAmt, T.InsuranceAmt, T.ClaimID, 
T.AuditDateTime, T.TransactionType, T.ProviderID, PR.FirstName,
PR.LastName 
FROM (((Provider  PR  INNER JOIN (Person P INNER JOIN Transaction T ON 
P.PersonID = T.PersonID) ON PR.ProviderID = T.ProviderID) LEFT JOIN 
PatientService PS ON T.TransactionID = PS.TransactionID) LEFT JOIN
Diagnosis 
D ON PS.DiagnosisID1 = D.DiagnosisID) INNER JOIN Staff S ON T.CreatedBy
= 
S.StaffID WHERE (((T.ServPayAdjIDString)<>'inibal') AND
((T.IsDeleted)=0)) 
ORDER BY PR.LastName, PR.FirstName, T.TranDateTime DESC

This query is invoked from a Visual Basic 6.0 application that uses ADO
& 
ODBC to connect to a MySQL database.

The query runs fine on a small test database but when i run it on the 
production database the application just hangs up without generating any

error messages.

The query is expected to return some 196000 records from the production 
database. Can this (large number of records) be causing the problem?

Is there any setting in MySQL that I could change ?

If i run the query on the server i can see upto 1000 records but no
more.

This is my first attempt at MySQL hence the newbie type questions.

I should also mention that the application in question originally used
an MS 
Access database and it can pull all the 196000 records from it.

Any help will be greatly appreciated.
Thanks
Greg

_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up - now 3 months
FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to