This document is intended for application developers who need access to data from Adaptive Server® Enterprise on Microsoft Windows and UNIX platforms, using Open Database Connectivity (ODBC).
The information in this book is organized as follows:
Chapter 1, “Introduction to ODBC Programming,” contains information for developing applications that directly call the ODBC programming interface.
Chapter 2, “Connecting to a Database,” describes how client applications connect to Adaptive Server using ODBC.
Chapter 3, “Supported Adaptive Server Features,” describes the Adaptive Server features that you can use with the Adaptive Server ODBC Driver.
See these books for more information:
The Software Developer’s Kit Release Bulletin for your platform contains important last-minute information about Adaptive Server ODBC Driver and Software Developer’s Kit (SDK).
The Software Developer’s Kit and Open Server Installation Guide contains information about installing SDK and its Adaptive Server ODBC Driver component.
The Adaptive Server Enterprise Installation Guide contains information about installing Adaptive Server.
The Adaptive Server Enterprise Release Bulletin for your platform contains information about known problems and recent updates to Adaptive Server.
Use the Sybase® Product Manuals Web site to learn more about your product:
The Sybase Product Manuals Web site is an online version of the SyBooks CD that you can access using a standard Web browser. In addition to product manuals, you will find links to EBFs/Maintenance, Technical Documents, Case Management, Solved Cases, newsgroups, and the Sybase Developer Network.
To access the Sybase Product Manuals Web site, go to Product Manuals.
Technical documentation at the Sybase Web site is updated frequently.
Finding the latest information on product certifications
Point your Web browser to Technical Documents.
Click Partner Certification Report.
In the Partner Certification Report filter select a product, platform, and timeframe and then click Go.
Click a Partner Certification Report title to display the report.
Finding the latest information on component certifications
Point your Web browser to Availability and Certification Reports.
Either select the product family and product under Search by Base Product; or select the platform and product under Search by Platform.
Select Search to display the availability and certification report for the selection.
Creating a personalized view of the Sybase Web
site (including support pages)
Set up a MySybase profile. MySybase is a free service that allows you to create a personalized view of Sybase Web pages.
Point your Web browser to Technical Documents.
Click MySybase and create a MySybase profile.
Finding the latest information on EBFs and software
maintenance
Point your Web browser to the Sybase Support Page.
Select EBFs/Maintenance. If prompted, enter your MySybase user name and password.
Select a product.
Specify a time frame and click Go. A list of EBF/Maintenance releases is displayed.
Padlock icons indicate that you do not have download authorization for certain EBF/Maintenance releases because you are not registered as a Technical Support Contact. If you have not registered, but have valid information provided by your Sybase representative or through your support contract, click Edit Roles to add the “Technical Support Contact” role to your MySybase profile.
Click the Info icon to display the EBF/Maintenance report, or click the product description to download the software.
The following conventions are used in this book.
Functions, command names, command option names, program names, program flags, properties, keywords, statements, and stored procedures are printed as follows:
Use the SQLSetConnectAttr function to control details of the connection. For example, the following statement turns off ODBC autocommit behavior:
sr = SQLSetConnectAttr(ConnectionHandle, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER)SQL_AUTOCOMMIT_OFF, SQL_IS_UINTEGER);
Variables, parameters, and user-supplied words are in italics in syntax and in paragraph text, are printed as follows:
For example, the following statement allocates a SQL_HANDLE_STMT
handle
the with name stmt
,
on a connection with a handle named dbc.
Names of database objects such as databases, tables, columns, and datatypes, are printed as follows:
The value of the pubs2 object.
Examples that show the use of functions are printed as follows:
retcode = SQLConnect( dbc, (SQLCHAR*) "MANGO", SQL_NTS, (SQLCHAR* ) "sa", SQL_NTS, (SQLCHAR*) "", SQL_NTS );
Syntax formatting conventions are summarized in the following table.
Key |
Definition |
---|---|
{ } |
Curly braces mean you must choose at least one of the enclosed options. Do not include braces in the command. |
[ ] |
Brackets mean you can choose or omit enclosed options. Do not include brackets in the command. |
| |
Vertical bars mean you can choose no more than one option (enclosed in braces or brackets). |
, |
Commas mean you can choose as many options as you need (enclosed in braces or brackets). Separate your choices with commas, to be typed as part of the command. Commas can also be required in other syntax contexts. |
( ) |
Parentheses are to be typed as part of the command. |
... |
An ellipsis (three dots) means you can repeat the last unit as many times as you need. Do not include ellipses in the command. |
This document is available in an HTML version that is specialized for accessibility. You can navigate the HTML with an adaptive technology such as a screen reader, or view it with a screen enlarger.
Software Developer’s Kit version 15.7 and the HTML documentation have been tested for compliance with U.S. government Section 508 Accessibility requirements. Documents that comply with Section 508 generally also meet non-U.S. accessibility guidelines, such as the World Wide Web Consortium (W3C) guidelines for Web sites.
The online help for this product is also provided in HTML, which you can navigate using a screen reader.
You might need to configure your accessibility tool
for optimal use. Some screen readers pronounce text based on its
case; for example, they pronounce ALL UPPERCASE TEXT as initials,
and Mixed Case Text as words. You might find it helpful to configure
your tool to announce syntax conventions. Consult the documentation
for your tool.
For information about how Sybase supports accessibility, see Sybase Accessibility. The Sybase Accessibility site includes links to information on Section 508 and W3C standards.
Each Sybase installation that has purchased a support contract has one or more designated people who are authorized to contact Sybase Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area.