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?
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")
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...
Comments
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.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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")
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
Table - > View <=(Linked Servers)=> View -> Navision LinkedObject
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.