C/ODBC 3.6 Delay opening ADO Recordsets

Siggi
Member Posts: 3
Hi !
I wrote a VB6 - Program that searches Navision Tables through C/ODBC
by using ADO recordsets of VB6 - this worked pretty fine under Navision 2.x.
Now we changed to Navision Attain 3.6 and the Program is so slow accessing Navision Tables.
The problem comes up when I using a recordset in a loop opening and closing it at every iteration (with different SQL - queries), the open - Method takes longer and longer from iteration to iteration .
After 200 Iterations it takes about 5 -6 seconds, at the first one below one second.
Has somebody any experiences wiht that ?
Please let me know
I wrote a VB6 - Program that searches Navision Tables through C/ODBC
by using ADO recordsets of VB6 - this worked pretty fine under Navision 2.x.
Now we changed to Navision Attain 3.6 and the Program is so slow accessing Navision Tables.
The problem comes up when I using a recordset in a loop opening and closing it at every iteration (with different SQL - queries), the open - Method takes longer and longer from iteration to iteration .
After 200 Iterations it takes about 5 -6 seconds, at the first one below one second.
Has somebody any experiences wiht that ?
Please let me know
0
Comments
-
Hi!
As I remember the ADO control has a property about cursors -I used it some time ago, but unfortunately don't remember-. I'd try to find and change server side from client side cursor.
I hope it helps.Siggi wrote:Hi !
I wrote a VB6 - Program that searches Navision Tables through C/ODBC
by using ADO recordsets of VB6 - this worked pretty fine under Navision 2.x.
Now we changed to Navision Attain 3.6 and the Program is so slow accessing Navision Tables.
The problem comes up when I using a recordset in a loop opening and closing it at every iteration (with different SQL - queries), the open - Method takes longer and longer from iteration to iteration .
After 200 Iterations it takes about 5 -6 seconds, at the first one below one second.
Has somebody any experiences wiht that ?
Please let me knowBrg,
--
János Borsics0 -
Hi, thanks for you comment - I'm already running on serverside cursor, had that problem also when running on Navision Financial 2.x - but this doesn't make a change.
Seems it is something in the C/ODBC driver which causes a problem together with ADO, might need to switch to latest ADO - Version maybe.
So far I'm still not sure where to go .[/quote]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions