Collection Contents Index Upgrading Embedded SQL applications Using the compatibility library pdf/chap5.pdf

New Features and Upgrading Guide
   CHAPTER 5. Upgrading to Adaptive Server Anywhere     

Upgrading ODBC applications


You can upgrade Version 5 ODBC applications in the following ways:

Components upgraded 

The following figure illustrates the changes you must make when upgrading an ODBC standalone application.

Data sources 

The ODBC data source specifies which ODBC driver to use. When an ODBC data source is created as an Adaptive Server Anywhere Version 6 data source, it uses the Version 6 ODBC driver.

Data source must be Version 6    
ODBC applications require a Version 6 ODBC data source to work with a Version 6 ODBC driver.

Top of page  Upgrade procedures for ODBC applications

This section provides step-by-step procedures for different kinds of ODBC applications:

Some applications allow you to change the ODBC data source name you use. Other applications use a fixed data source name. You can upgrade either kind of application.

  To upgrade ODBC applications that use an embedded database:
  1. Install the Version 6 software     The Version 6 software contains components that enable Version 5 ODBC applications to continue working. You can either install into a separate directory or over the top of your Version 5 software.

    Your application should be unaffected by installation of the Version 6 software.

  2. Create a Version 6 ODBC data source     The changes you make depend on the connection parameters you use in the data source.

  3. Use the new data source     With this step, you are using all Version 6 software and have completed your upgrade. The database itself does not need to be upgraded to work with existing applications.

Some applications may have the data source name hard wired. In this case, you need to replace the Version 5 data source with a Version 6 data source of the same name. It is recommended that you rename, rather than delete, your Version 5 data source.

  To upgrade ODBC client/server applications:
  1. Prepare for the upgrade     This step must be carried out at each client machine. You prepare for the upgrade by installing the Version 6 software.

    Your application should be unaffected by installation of the Version 6 software.

  2. Create a Version 6 ODBC data source     This step must be carried out at each client machine. The changes you make depend on the connection parameters you use in the data source.

  3. Upgrade the database server     This step must be carried out at the server machine.

  4. Use the new data source     This step must be carried out at each client machine. You need to use the new connection description to connect to the Version 6 server. With this step, you are using all Version 6 software and have completed your upgrade. The database itself does not need to be upgraded to work with existing applications.

Top of page  Upgrade notes for PowerBuilder and InfoMaker users

Users of Sybase PowerBuilder and InfoMaker should make some changes in order to obtain full functionality with Adaptive Server Anywhere Version 6.

The pbodb60.ini file 

PowerBuilder and InfoMaker use a file named pbodb60.ini to hold ODBC data source information. The 60 in the file name may be different, depending on the version you have. For each ODBC driver it provides such things as DDL syntax, default DBParm options, valid function names and special datatypes.

If your pbodb60.ini file does not have a Adaptive Server Anywhere section, PowerBuilder and InfoMaker default to a core syntax. This limits the operations you can carry out using these tools. For example you cannot create, alter, or drop primary and foreign keys.

Upgrading your pbodb60.ini file 

To obtain complete functionality with PowerBuilder and InfoMaker, you need to upgrade your pbodb60.ini file.

  To upgrade your pbodb60.ini file:
  1. Make a backup copy of your existing pbodb60.ini file.

  2. Add an Adaptive Server Anywhere section to the working copy of the file containing the same information as the existing Sybase SQL Anywhere section:

    [Adaptive Server Anywhere]
    PBSyntax='WATCOM50_SYNTAX'
    PBDateTime='STANDARD_DATETIME'
    PBFunctions='WATCOM_FUNCTIONS'
    PBDefaultValues='autoincrement,current date,current time,current timestamp,timestamp,null,user'
    PBDefaultCreate='YES'
    PBDefaultAlter='YES'
    PBDefaultExpressions='YES'
    DelimitIdentifier='YES'
    PBDateTimeInvalidInSearch='NO'
    PBTimeInvalidInSearch='YES'
    PBQualifierIsOwner='NO'
    PBSpecialDataTypes='WATCOM_SPECIALDATATYPES'
    IdentifierQuoteChar='"'
    PBSystemOwner='sys,dbo,rs_systabgroup'
    PBUseProcOwner='YES'
    SQLSrvrTSName='YES'
    SQLSrvrTSQuote='YES'
    SQLSrvrTSDelimit='YES'
    ForeignKeyDeleteRule='Disallow if Dependent Rows Exist (RESTRICT),Delete any Dependent Rows (CASCADE),Set Dependent Columns to NULL (SET NULL)'
    TableListType='GLOBAL TEMPORARY'
Top of page  

Collection Contents Index Upgrading Embedded SQL applications Using the compatibility library pdf/chap5.pdf