ABAP Keyword Documentation →  ABAP − Reference →  Processing External Data →  ABAP Database Accesses →  Native SQL → 

ADBC - ABAP Database Connectivity

ADBC is an API for the Native SQL interface of the AS ABAP that is based on ABAP Objects. The ADBC methods can be used to pass Native SQL statements to the database interface. The make it possible to

The ADBC classes all begin with the prefix CL_SQL_ or CX_SQL_ and are documented. The following paragraphs briefly introduce the most important classes.

Programming Guideline

Using Open SQL

Notes

The existing static embedding of Native SQL statements is still supported but should no longer be used in new programs.

Security notes

If used wrongly, dynamic programming techniques can present a serious security risk. Any dynamic content that is passed to a program from the outside must be checked thoroughly or escaped before being used in dynamic statements. This can be done using the system class CL_ABAP_DYN_PRG or the predefined function escape.

Examples

The program ADBC_DEMO demonstrates the most important ADBC methods. For examples from the ABAP example library, see ADBC Examples.




Continue
CL_SQL_STATEMENT - Execution of SQL Statements
CL_SQL_PREPARED_STATEMENT - Prepared SQL Statements
CL_SQL_CONNECTION - Database Connections
CX_SQL_EXCEPTION - Exception Class
Examples of ADBC