Adding stored procedures to NAV 5 on SQL Server

davidec
Member Posts: 63
Hello!
I need to integrate an existing web application with an existing NAV5 system, running on SQL Server. Some data need to be fetched from some definite NAV tables and some other data need to be written to other definite tables.
Since the web application already relies on Stored Procedures to access another SQL Server DB, I'm evaluating the possibility of adding custom stored procedures inside the NAV5 DB, calling them from the web application, and any implications of doing so...
I figure this would not cause problems reading data (as far as who calls the SP has sufficient rights, but this should not affect NAV users management, right?), whereas some issues could arise if, when writing, I fail to update all tables that would be afftected using standard NAV...
Are there any known issues in doing so? I should "just" take care of the rights accessing the DB and make sure that I don't leave tables untouched that would be affected by a standard NAV trigger?
Thank you very much in advance!
I need to integrate an existing web application with an existing NAV5 system, running on SQL Server. Some data need to be fetched from some definite NAV tables and some other data need to be written to other definite tables.
Since the web application already relies on Stored Procedures to access another SQL Server DB, I'm evaluating the possibility of adding custom stored procedures inside the NAV5 DB, calling them from the web application, and any implications of doing so...
I figure this would not cause problems reading data (as far as who calls the SP has sufficient rights, but this should not affect NAV users management, right?), whereas some issues could arise if, when writing, I fail to update all tables that would be afftected using standard NAV...
Are there any known issues in doing so? I should "just" take care of the rights accessing the DB and make sure that I don't leave tables untouched that would be affected by a standard NAV trigger?
Thank you very much in advance!
0
Comments
-
When writing into NAV from outside, it is good practice to write data into separate tables, created only for that purpose, and process these tables into "live" tables by some NAV process (e.g. running on application server). In this way, you are sure that whole business logic is working and you will not mess the data...0
-
Thank you very much: An interesting point that I'll need to take into account!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