CFRONT and SQL Server

c.kestas
Member Posts: 15
I have developed a little program in C/Front (using standard C) which keeps looking for new records in a specific table. The program perfectly well when connected to a Navision database. With a SQL database however it misses new records. Here's my code:
for (;;) { DBL_SelectLatestVersion(); DBL_OpenTable(&MessageQueueTable,50015); CheckMessageQueueTable(MessageQueueTable); DBL_CloseTable(MessageQueueTable); Sleep(500); };The first time it goes into the loop it processes all new records correctly, but if a new record is added while the program is running, that record is not "seen" by the program.
0
Comments
-
Further to my original post:
a. The second sentence should read "The program WORKS prerfectly well ...."
b. The fundamental issue here is concurrency. If the backend database is Native, then the moment a record is written to a table (and commited) it is picked up by C/Front. This is not the case when the Backend database is SQL. The only way I can read the new records is by disconnecting from the server and connecting again.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