Development Based on ODBC
Open Database Connectivity (ODBC) is a Microsoft API for accessing databases based on the X/OPEN CLI. Applications interact with the database through the APIs provided by ODBC, which enhances their portability, scalability, and maintainability.
Figure 1 shows the system structure of ODBC.
GaussDB supports ODBC in the following environments.
OS |
Platform |
---|---|
EulerOS V2.0SP5 |
x86_64 |
EulerOS V2.0SP9 |
Arm64 |
EulerOS V2.0SP10 |
x86_64 |
EulerOS V2.0SP10 |
Arm64 |
Windows 7 |
x86_32 |
Windows 7 |
x86_64 |
Windows Server 2008 |
x86_32 |
Windows Server 2008 |
x86_64 |
Kylin V10 |
x86_64 |
Kylin V10 |
Arm64 |
UnionTech V20 |
x86_64 |
UnionTech V20 |
Arm64 |
Huawei Cloud EulerOS 2.0 |
x86_64 |
Huawei Cloud EulerOS 2.0 |
Arm64 |
The ODBC Driver Manager running on Unix or Linux can be unixODBC or iODBC. unixODBC-2.3.7 is used as the component for connecting to the database.
Windows has a native ODBC Driver Manager. You can locate Data Sources (ODBC) by choosing
.The current database ODBC driver is based on an open-source version and may be incompatible with data types tinyint, smalldatetime, nvarchar, and nvarchar2.
ODBC Constraints
- ODBC does not support read on the standby node.
- ODBC does not support user-defined types and does not support user-defined parameters in stored procedures.
- ODBC does not support DR switchover.
- When the proc_outparam_override parameter is enabled for the database, ODBC cannot properly call the stored procedure that contains the out parameter.
- ODBC Packages, Dependent Libraries, and Header Files
- Development Process
- Configuring a Data Source in the Linux OS
- Configuring a Data Source in the Windows OS
- Example: Common Functions and Batch Binding
- Typical Application Scenarios and Configurations
- ODBC Interface Reference
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot