How to connect NAV with SQL DB (two different network)
crazydade
Member Posts: 3
Hi all !
I have a question: I have to connect my DB NAV (release 2016) with a SQL DB which is not on the same network.
NAV DB an the SQL DB are in two different city, two different network and the SQL DB is used from another program (no NAV).
I have either to read and write to this SQL DB.
Can I connect NAV to SQL?
I'm already using the connection between NAV and an external SQL DB, but always in the same network.
The connection now is managed in this way:
SQLConnection := SQLConnection.SqlConnection(ConnStr);
where
_ SQLConnection=Dotnet variable (System.Data.SqlClient.SqlConnection.'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
_ ConnStr = Text variable with this value:
Data Source= SQLservername; Initial Catalog= SQL DB;User Id= user;Password=password;
Can you help me? Thanks in advance to all.
Davide
I have a question: I have to connect my DB NAV (release 2016) with a SQL DB which is not on the same network.
NAV DB an the SQL DB are in two different city, two different network and the SQL DB is used from another program (no NAV).
I have either to read and write to this SQL DB.
Can I connect NAV to SQL?
I'm already using the connection between NAV and an external SQL DB, but always in the same network.
The connection now is managed in this way:
SQLConnection := SQLConnection.SqlConnection(ConnStr);
where
_ SQLConnection=Dotnet variable (System.Data.SqlClient.SqlConnection.'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
_ ConnStr = Text variable with this value:
Data Source= SQLservername; Initial Catalog= SQL DB;User Id= user;Password=password;
Can you help me? Thanks in advance to all.
Davide
0
Answers
-
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Someone can help me, please?0
-
Hi Crazydade,
I'm not a NAV developer myself, so I cannot help you with your exact question. From an architectural point of view. Isn't it possible to create the connection over HTTP(s) REST (SOAP/OData) webservices? If you create a web API on the external database side you can consume those web services from NAV. This could make the coupling a lot easier.1 -
Hi!
Remko is right! You should have webservice for you external SQL DB and fetch data from NAV via webservice. Or, create webservice on NAV side and make some stored procedures in you SQL DB to fetch data from NAV. Depends on your task.Regards,
Yury0 -
if you're able to connect throw VPN, you should be able to reach it like in a local network0
-
Thanks to everyone!
I will update you how I will solve the problem0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
