SQL ,Stored Procedures and DataProviders in C/AL?

gulamdastagir
Member Posts: 411
hi
ADO.NET
1.You use a Connection Object to Connect to a DATA PROVIDER(ODBC/ORACLE/OLEDB/SQLSERVER) at Runtime.
2.You use a Command and DATAADAPTER /DATAREADER object to Run your SQL and Stored Procedures
3.You use the Datasets which give the disconnected functionality to ADO.NET
C/AL
eg. OnAfterGetRecord(): Item.GET("Primary key");
My question is C/AL where is the database provider,Stored Procedures and most importantly where is the SQL???
](*,)
ADO.NET
1.You use a Connection Object to Connect to a DATA PROVIDER(ODBC/ORACLE/OLEDB/SQLSERVER) at Runtime.
2.You use a Command and DATAADAPTER /DATAREADER object to Run your SQL and Stored Procedures
3.You use the Datasets which give the disconnected functionality to ADO.NET
C/AL
eg. OnAfterGetRecord(): Item.GET("Primary key");
My question is C/AL where is the database provider,Stored Procedures and most importantly where is the SQL???
](*,)
Regards,
GD
GD
0
Comments
-
C/AL in origin has it's own Database. Now it is possible to use a SQL-DB but the code is (almost) the same for a Navision-DB and a SQL-DB.
So all the SQL statements are generated by the C/AL.
So no Database provider, no stored procedure, no SQL. Only C/AL. All the DB-calls are written in C/AL. No need to open the DB, because this is done automatically when logging into Navision.
It is possible to connect to another DB, but this is done using ADO written with C/AL statements. Search the forum for some examples.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
C/AL runs inside the database, so you don't need to connect to it. It does not use SPs, although internal NAV communication does seem to use them. I would advise not to touch those SPs though, or run the risk of corrupting the database.0
-
Assuming i have built my own stored procedures, is there a possibility to execute the stored procedures using C/AL and also pass values into them?0
-
my question has been asnwered in the following topic:
http://www.mibuso.com/forum/viewtopic.p ... +procedure0 -
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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