how to insert table data using dotNet and sql server

somnath
Member Posts: 3
Hi
Any one knows how insert data in sql server through navision database tables using aspdotNet.
Any one knows how insert data in sql server through navision database tables using aspdotNet.
0
Comments
-
And why you want to do that? Do you want to write into standard tables or into some special tables just for this purpose?0
-
I think it really depends on what you're trying to do - are you using staging tables? Have you looked into using C/ODBC?0
-
I need use it on line concept using dot net to acess Navision data base which is in sql server0
-
if you need to write datas from your asp.net site into a sql database use the .net functionality. If the NAV database is on the sql server you can handle the database like some other sql database.
If you then want to run some NAV code (C/AL like in codeunits, triggers or so) you must run a Client or better a NAS that process your datas which are written from asp.net application into the database.
But doen't forgett: If you write datas into a navision table (like Sales Header) the Navision C/AL code (business logic) will not run, because only a Nav / NAS Client can run this code.
So, better is to use a Pre-Preocess table. Store there all infos and the NAS process this datas.
Is it that what you need?Do you make it right, it works too!0 -
I would always be very careful about writing to SQL tables that are Navision controlled. Navision is picky about it's data types and underlying structures and if any external application writes invalid data to a Navision table this can corrupt your system.
My general recommendation to clients and other developers when trying to access Navision via SQL through other non Navision client methods is: 1) for read access to data simply read from the tables via SQL directly 2) for write access make sure to use a staging table, MSMQ, C/ODBC or other Navision supported and controlled integration method. This will then ensure that any business logic and data validation is fully controlled by Navision.0 -
I agree 100% with Jeff. Maybe we should have a sticky subject with that answer0
-
read this, it's the same principle and it will open your eyes.
viewtopic.php?f=23&t=31374
viewtopic.php?f=23&t=31713Do you make it right, it works too!0 -
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