How to import data from external SQL table.

jsl_dk
Member Posts: 24
I have looked around for a way to import SQL data.
I know how to import text file, using XML ports and know that XML is an option too.
But when it comes to SQL datasets I can't find info.
I alternatively consider to create a table in NAV and import the data from outside via webservice.
Any surgestions ?
I know how to import text file, using XML ports and know that XML is an option too.
But when it comes to SQL datasets I can't find info.
I alternatively consider to create a table in NAV and import the data from outside via webservice.
Any surgestions ?
0
Best Answer
-
You are probably referring to ADO.
A simple example can be found here:
https://community.dynamics.com/nav/b/navrashedamini/archive/2011/01/10/using-ado-on-rtc-in-nav
5
Answers
-
Depends:
* If the other SQL Database is also a NAV Database with Services running, you might consider Webservices if the expected dataload isnt too heavy
* Add your external Database Server as linked Server, and create a view in your DB to represent the data you need.
* If it's a import you only do once, or like quarterly you might choose to not go through all of this and just export the data as csv in Management Studio and create a simple xmlport to do the importing.
* If you are handling huge amount of data and performance is critical you might want to consider throwing queries directly at the DB using the DotNet SqlDataReader.
There are many approaches, choose the one that suits your needs and you are comfortable with.Austrian NAV/BC Dev1 -
Hi,
If you want to Import Data From External Source for one time, you can also use SQL Server Import and Export Wizard. This comes by default with SQL Server Installation.
There are so many options to choose from using the wizard.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Thanks for your answers.
Its a weekly routine of importing orderlines not a heavy amount.
I understand that it should somehow be possible to use a dot net component - but how ....0 -
You are probably referring to ADO.
A simple example can be found here:
https://community.dynamics.com/nav/b/navrashedamini/archive/2011/01/10/using-ado-on-rtc-in-nav
5
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