Can you link external MySQL tables to NAV 2018?

Lilithyan
Member Posts: 32
Hello everyone,
I'm new to the concept of connecting and using external Tables in NAV. In this specific case our customer want to use an external MySQL database together with NAV 2018 CU5. The development is going to be "old school" in C/AL via the development client.
NAV is supposed to read and write into these external Tables.
I know there is the table property TableType where you would (probably?) define the Table as ExternalSQL, that the fields in NAV and MySQL have to be identical (Order of Fields, Name, Type, Length) and that a connection has to be established to get the data from the MySQL database.
But I have no bloody clue how to create the connection and which other pitfalls to avoid. While one of my colleagues has some notion on how it should be, he's never done it with a MySQL Database.
So the three big questions: Can/Should you connect NAV 2018 to an external MySQL database? If yes, how can/should it be done? If no, why and what is a better alternative?
Thanks for any help in advance!
Ciao,
Lils
I'm new to the concept of connecting and using external Tables in NAV. In this specific case our customer want to use an external MySQL database together with NAV 2018 CU5. The development is going to be "old school" in C/AL via the development client.
NAV is supposed to read and write into these external Tables.
I know there is the table property TableType where you would (probably?) define the Table as ExternalSQL, that the fields in NAV and MySQL have to be identical (Order of Fields, Name, Type, Length) and that a connection has to be established to get the data from the MySQL database.
But I have no bloody clue how to create the connection and which other pitfalls to avoid. While one of my colleagues has some notion on how it should be, he's never done it with a MySQL Database.
So the three big questions: Can/Should you connect NAV 2018 to an external MySQL database? If yes, how can/should it be done? If no, why and what is a better alternative?
Thanks for any help in advance!
Ciao,
Lils
0
Answers
-
Usually it's not recommended to connect separate applications on sql level. If it's part of one application you can adopt the MySQL tables into the NAV. Data transfer on sql level bypasses the business logic from the other application. Security is a thing if you want to connect two databases, especially if they are hosted on different machines. I think the best practice is to create a web interface for the MySQL Database and use web services to read and write data in the MySQL Database.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