Exact user entry. These are words or characters that you enter in the system exactly as they appear in the documentation. <Example text> Variable user entry. Pointed brackets indicate that you replace these words and characters with appropriate entries. ODBC Manual: SAP DB...
SAP AG November 2002 ODBC Manual: SAP DB ......................5 Supported ODBC Versions ....................5 Properties of the SAP DB ODBC Driver ................5 Supported Data Types ....................... 6 SQL Data Types ......................6 C Data Types........................6 Conversion of SQL and C Data Types................7 Processing SQL Statements ....................
The SAP DB ODBC driver allows access to the SAP DB database system. Data is accessed using the Structured Query Language (SQL). Depending on the operating system, the SAP DB ODBC driver is both 32 bit- and 64 bit- compatible. It runs on Linux, Microsoft Windows as of Microsoft Windows 95 and all UNIX systems that are supported by SAP DB.
(scale), and the number of valid digits (precision). For more information about the data types defined for the SAP DB database system, see the Reference Manual: SAP DB 7.4, data type [See SAP DB Library] section.
SQLUINTEGER fraction;} SQL_C_BIT SQLCHAR unsigned char Conversion of SQL and C Data Types The SAP DB ODBC driver allows the conversion for all supported data types [Page See also: Microsoft Homepage (http://www.microsoft.com/data/ODBC) in the ODBC Software Development Kit (SDK) under ODBC Programmer‘s Reference, Converting Data from SQL to C Data Types and Converting Data from C to SQL Data Types sections.
As SAP DB can lock row-by-row, a user can change data in a table even if another user has also opened parts of this table. The prerequisite for this is that the rows to be changed are outside the part of the table that the other user has opened.
November 2002 Core API [Page 9] Level 1 API [Page 10] Level 2 API [Page 19] Core API Overview of the functions that are defined in the SAP DB ODBC driver for the core API Function Remarks SQLAllocConnect SQLAllocEnv SQLAllocStmt...
SQLSetCursorName SQLTransact Level 1 API Overview of the functions that are defined in the SAP DB ODBC driver for the Level 1 Function Remark SQLBindParameter If you want to process more than one LONG column with an INSERT,...
The SAP DB ODBC driver supports the following table types (szTableType): ALIAS, RESULT, SNAPSHOT, SYSTEM, SYSTEM TABLE, TABLE, UNLOADED, VIEW Remark for SQLGetConnectAttr List of all supported attributes and return values of the SAP DB ODBC driver Attributes Return Values SQL_ ATTR_ACCESS_MODE pvParam = SQL_MODE_READ_WRITE...
SAP AG November 2002 Remark for SQLGetInfo List of all attributes and return values supported by the SAP DB ODBC driver Attributes Return Values SQL_ACCESSIBLE_PROCEDURES rgbInfoValue = "N" SQL_ACCESSIBLE_TABLES rgbInfoValue = "N" SQL_ACTIVE_CONNECTIONS rgbInfoValue = 0 SQL_ACTIVE_STATEMENTS rgbInfoValue = 32767...
Page 15
| SQL_CB_DELETED (SQLMode = ANSI) SQL_DATA_SOURCE_NAME rgbInfoValue = (Name of the opened data source) SQL_DATA_SOURCE_READ_ONLY rgbInfoValue = "N" SQL_DBMS_NAME rgbInfoValue = "SAP DB" SQL_DBMS_VER rgbInfoValue = "/07.03.nnn" SQL_DEFAULT_TXN_ISOLATION rgbInfoValue = SQL_TXN_READ_COMMITTED SQL_DRIVER_HDBC rgbInfoValue = (Handle of the driver logon) SQL_DRIVER_HENV...
SQL_UNION rgbInfoValue = SQL_U_UNION | SQL_U_UNION_ALL SQL_USER_NAME rgbInfoValue = (Name of the active user) Level 2 API Overview of the functions that are defined in the SAP DB ODBC driver for the Level 2 Function Remark SQLBrowseConnect SQLColumnPrivileges SQLDataSources SQLDescribeParam...
SQLConnectW is called in the ODBC driver. The conversions between ASCII and Unicode are performed by the Driver Manager. Overview of the functions that are defined in the SAP DB ODBC driver for access to Unicode data...
These options differ only in the default value of the system for storing the installed software. If you install the SAP DB ODBC driver as part of the server package, the system default value for the installation path up to database version 7.3 is the <dependent_data_path>, as of database version 7.4, the <independent_data_path>.
Page 22
Library] section Procedure Check whether a SAP DB Server is already installed on your server. If this is the case, the SAP DB ODBC driver is also already installed, and no further steps are necessary. Otherwise, proceed as follows: Open the InstallShield Wizard for the SAP DB ODBC driver by double clicking the file odbc7x-setup.exe.
Settings (ODBC). This opens the ODBC Data Source Administrator. 2. Choose Add. 3. From the displayed list of the installed ODBC drivers, choose the entry SAP DB and confirm your choice by choosing Finish. 4. Make the following entries: Data Source Name Name of the data source.
Source Administrator on the Tracing tab page. SQL Mode (Microsoft Windows) If you specify the option SQL Mode, you can use the SAP DB ODBC driver in a different SQL mode. This means that the driver can process not only the ODBC and SAP DB-specific SQL syntax, but also the ORACLE or DB2 syntax, for example.
6. Confirm the windows until the ODBC Data Source Administrator closes. Result The next time that you log on to the database server using this data source, the SAP DB ODBC driver functions with the selected lock operation type. Logging SQL Statements (Microsoft Windows) Select the Trace On option for a data source, if you want to log the SQL statements that are transferred from the application to the database system.
You have various options for installing the SAP DB ODBC driver: • As part of the SAP DB server package The software for the SAP DB ODBC driver is stored under the <dependent_data_path> up to database version 7.3 and under the <independent_data_path> as of database version 7.4.
ODBC driver into the Driver Manager. Use without a Driver Manager If you are not using a Driver Manager, you must use an editor to enter the data for the SAP DB ODBC driver manually, either in the file ~/.odbc.ini or the file /var/spool/sql/ini/odbc.ini.
Your entries become effective when the next ODBC connection is created. Options for Data Sources (UNIX/Linux) You can specify various options to influence the functioning of the SAP DB ODBC driver. These options become active the next time that you log on to the database server.
SQL Mode (UNIX/Linux) By changing the option SQLMode, you can use the SAP DB ODBC driver in a different SQL mode. This means that the driver can process not only the ODBC and SAP DB-specific SQL syntax, but also the ORACLE or DB2 syntax, for example.
If this option is not set, no log is written (system default value). Syntax TraceFileName = <file_name> <file_name> ::= [<path_name>/]file_identifier Procedure To change the TraceFileName option, follow the procedure described under Creating and Changing Data Sources Under UNIX/Linux [Page 28]. ODBC Manual: SAP DB...
Need help?
Do you have a question about the DB:ODBC and is the answer not in the manual?
Questions and answers