Late Insert of Data coming via ODBC
Bettina
Member Posts: 22
Hello,
we have a solution where data from an external program will be inserted to the Navision Database via C/ODBC. Sometimes it takes up to 2 hours until we see the data really in the database table. The external program has a log, so that we can see the real time of sending data to Navision. How can we achieve, that the data are inserted immediately?
We use Native Database, Commit Cache is activated. C/ODBC is configured without Commit Cache.
Thanks for evey note!
Bettina
we have a solution where data from an external program will be inserted to the Navision Database via C/ODBC. Sometimes it takes up to 2 hours until we see the data really in the database table. The external program has a log, so that we can see the real time of sending data to Navision. How can we achieve, that the data are inserted immediately?
We use Native Database, Commit Cache is activated. C/ODBC is configured without Commit Cache.
Thanks for evey note!
Bettina
0
Comments
-
Hi Bettina,
does ODBC committ transactions immedeately?
does the ODBC connection access the same database you expect the data to appear in? (-> any replication / synchronisation involved)
Is the data written to some staging table or directly to the table you expect the data to appear? (-> how and when does the staging occure?)
ODBC connections work directly on the database. So, any changes are immediate.0 -
Hi,
firstable, I'm shure, that ODBC access the correct database. Sometimes the data are immediately in the database, but sometimes it takes hours. And if I close the external program (ODBC-User will be logged out) the data appear in the database table immediately. The table is a new one only for collecting the data from the external program.
What do you mean with "does ODBC committ transactions immedeately"? Is there a special command which should be used in the external program, I think it's written in Visual Basic?
Additional Info: We have the problems since an update to NAV 2009. With 4.0 it was working without these problems. The only thing we changed in configuration is the increased database server cache.0 -
Hi Bettina,
I do not know very much about ODBC programming, but yes, ODBC supports/requires transactions with some ODBC data sources. In many programs accessing generic ODBC data sources there is an option whether you want it to do an implicit commit after every command or you want to give an explicit commit. So I guess this is an configuration option of ODBC itself.
You (or the programmer of the application) might want to search documentation for more accurate information. As a start, this may help
http://msdn.microsoft.com/de-de/library/xafb2yhc.aspx0 -
Had the same issue today, a very slow insert into a table of the native NAV 2009 (upgraded from a 3.60 version).
Uninstalled the ODBC driver of NAV 2009 and reinstalled the old NAV 5.0 ODBC driver (not even the 5.1 ODBC driver) and it work again liked a charm.Now, let's see what we can see.
...
Everybody on-line.
...
Looking good!0 -
Interesting, GoMaD. You can use the ODBC driver from Version 5 with 2009-Server?
Actually we have no more problems. I have deactivated the "Commit Cache" of the ODBC driver (thought, the customer had done this, but he didn't) and now it works. I will further watch it ...0 -
yes, you can use the 5.00 odbc driver on a nav 2009 native server, it still works at the customer.Now, let's see what we can see.
...
Everybody on-line.
...
Looking good!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
- 323 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
