Solved

INFORMIX Database and VB5 Question

Posted on 1998-11-04
4
222 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
Comment Utility
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
Comment Utility
hi csalves,

how can i execute a passtrhrough query?


0
 
LVL 1

Expert Comment

by:csalves
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now