Navision and SQL - Server

AlexE
Member Posts: 8
Hallo
I use Navision 4.0
I use Navision 4.0 with Sql Server.
I want to get data from an other SQL Server Database (not Navision).
How can I programm an Record, from an SQL Server Table from an other SQL Server Database?
Thanks for your help
I use Navision 4.0
I use Navision 4.0 with Sql Server.
I want to get data from an other SQL Server Database (not Navision).
How can I programm an Record, from an SQL Server Table from an other SQL Server Database?
Thanks for your help
0
Comments
-
I would create a new table in 50K range in Navision.
From the other SQL Server database, I would write to this table.
From Navision write code to do what You want to do with that data in 50K range.
That would be the start. We can go in detail if you provide the details.0 -
There are two base ways:
1) You can create view on your SQL server showing data from the linked server and you can create linked table in the Navision to see this view within Navision. After that, you will have access to the data through common C/AL code... (search for LinkedObject and learn how to use Linked servers in MS SQL Books Online)
2) You can use ADO automation libraries to read the data from the server. (search this forum for some examples for "how to use ADO")0 -
You can also create a view from your Navision database into the other database and create a linked table in Navision that links to your new view.0
-
if you create views, you have to take into consideration permission, and roles the user will need in order to see the view.0
-
Yes users will have to be db_owner in the other database to have write permissions in the view.0
-
You do not need such a permissions if you create view on 1st server (viewing the data from the table) and if you create second view connected to this 1st view on the linked server. After that, you need only to setup permissions for the view on the Navision server. I remember that if you connect it in this way, the permissions are used differently...
Table - > View <=(Linked Servers)=> View -> Navision LinkedObject0
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