Get Data from another Database
                
                    bill                
                
                    Member Posts: 100                
            
                        
            
                    Hi All. I have an issue. There is a need to run a report and gather data from another database. Is there a way to connect to another database and specific company get the data and transfer them into the other Navision database?                
                0                
            Comments
- 
            Hi
Use NAV Webservices to do it.
Regards0 - 
            Thanks for your responce.
Is there a function or somenthing like CHANGECOMPANY in order to do this via C/AL code?0 - 
            
 - 
            thanks mohana, but this is not my need. I know the CHANGECOMPANY functionality, i asked if there is a function like CHANGECOMANY in order to connect to another database within the same server.0
 - 
            Hi
You can do thinks that we did a few years ago.
Use ODBC to create a connection to a database and then use Microsoft ADO (or ADO.NET) to manage tables and Info.
I used it to connect ACCESS and SQL databases, so using NAV ODBC will be similar.
But, I think the best solution are web services
Regards0 - 
            If the External Database is on another Server you need a stable Connection to both used DB's:
Establish a linked Server Connection
http://msdn.microsoft.com/en-us/library/ms188279.aspx
Then create a view for all the Data you need.
If the Database is on the same sqlserver instance just create the view and a NAV table using the LinkedObject <Yes> Property.
The second possibility would be to solve the issue using WebServices.
___
WisaAustrian NAV/BC Dev0 - 
            thank you all for your feedback. Your info was very helpful.0
 
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
 
