Inserting into sql table via codeunit

steveblock
Member Posts: 13
Hi. Cany anyone tell me how to insert data into a SQL table via a codeunit. Specifically a SQL table that is not part of NAV. I’m just wondering if any of you have a sample of a codeunit using an OleDB (or other) connection to write data to a SQL table directly.
Thanks. steve
Thanks. steve
steve block
312-420-6935
312-420-6935
0
Comments
-
If you are using Nav on SQL you can create a linked server and a View for your non-Nav table. Then Create a Nav table based on that view and use it as you would use a normal table...0
-
-
Thank you for you suggestions. I am coming to the same conclusion that I should move it through a Journal and Post. Can you point me to any documentation or sample code as to how to do that? I figure I can use my Dot Net to XML and import into a journal table. But how do you post from journal to GL? Can I simply extend an existing method? Or do I have to start from scratch on writing the GL entry? If the latter, I am back to having to code all the verification rules.
By
Finley Bull
Handforth Dean Parking
Long Stay Parking0
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