Calling a SQL script or other solution?

Mindie
Member Posts: 124
We have sort of integrated another SQL database with the NAV database.
When certain fields on the customer card are changed the customer record gets copied to a new table. A SQL script runs every 60 seconds to find these records and imports them into the other SQL database.
I would like this to happen much faster than 60 seconds. We can't make the increments and shorter than that. I was told we can't call the SQL script from NAV so what other ways can we reduce that time?
When certain fields on the customer card are changed the customer record gets copied to a new table. A SQL script runs every 60 seconds to find these records and imports them into the other SQL database.
I would like this to happen much faster than 60 seconds. We can't make the increments and shorter than that. I was told we can't call the SQL script from NAV so what other ways can we reduce that time?
0
Comments
-
let met get this right
- you copy changed customers to kind of a queue table
- then every 60 seconds a SQL script runs and copies them to another database, and there 60 seconds is the limit?
if so, to decrease this limit, you could use NAS with a timer to check the queue table, and if NAS finds records, it starts processing them (maybe by calling a stored procedure on the other database, but you will need something to connect to it, ADO could help you with this)0 -
Yes that is correct.
Can NAS call stored procedures?0 -
Not from scratch, but you can tell him. Take a look at ADO, maybe this could help you.0
-
I've used triggers to do something similar, taking customer information and pushing that into another SQL database that was replicated to SQL CE clients. That would be nearly instant. The downside being that if the trigger fails for whatever reason the transaction in NAV would also fail. The error messages kicked back to the client don't necessarily lend themselves to the fact it can't update a customer because the trigger just failed, so you'd have to be familiar with what a failure looks like. Permissions can also be a bit tricky. This solution wouldn't be for everyone.
Bill0 -
Or you can use something called "SQL Query Notifications" (e.g. http://www.simple-talk.com/sql/sql-serv ... ification/) which can help external application to detect what was changed...0
-
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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