Solved

INFORMIX Database and VB5 Question

Posted on 1998-11-04
4
241 Views
Last Modified: 2012-05-05
Hi everyone!

I wish i can seek some help from you guys. I have a project which I developed in VB5 with INFORMIX as a backend Database, I just want to know whats the reason why it execute a query "VERY SLOW".  
  I am using INFORMIX Data Director for VB5 to connect to INFORMIX database.  
  I run the same program using a MS Access Database and it run FAST as I expected.

WHAT can I do to resolve this query problem, I need your help guys this project is very URGENT.

thanks in advance!


0
Comment
Question by:bmaranan
  • 3
4 Comments
 
LVL 1

Expert Comment

by:csalves
ID: 1443220
Hello,

Please try to execute your query passthrough and please verify your informix database indexes.

You can post the query and your table or tables and the indexes in use and i will try to help you

regards,
0
 

Author Comment

by:bmaranan
ID: 1443221
hi csalves,

how can i execute a passtrhrough query?


0
 
LVL 1

Expert Comment

by:csalves
ID: 1443222
Dim rs as recordset
dim sSQL as String

sSQL = "SELECT [Fields] FROM [table] ";

set rs = YourDB.OpenRecordset(sSQl,DbopenDynaset,dbsqlpassthrough)

The data contained in a passthrough query is read-only. after
you have to make dml operations with another instruction.

regards,
0
 
LVL 1

Accepted Solution

by:
csalves earned 50 total points
ID: 1443223
Dim rs as recordset
dim sSQL as String

sSQL = "SELECT [Fields] FROM [table] ";

set rs = YourDB.OpenRecordset(sSQl,DbopenDynaset,dbsqlpassthrough)

The data contained in a passthrough query is read-only. after
you have to make dml operations with another instruction.

regards,

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question