Contents Index Upgrading embedded SQL applications Using the version 5 utilities with Adaptive Server Anywhere

What's New in SQL Anywhere Studio
  Upgrading Version 5 Applications
    Upgrading embedded SQL applications

Upgrade procedures for embedded SQL applications


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

To upgrade embedded SQL applications that use an embedded database

  1. Install the current version of the software    Newer versions of the software contain components that enable Version 5 applications to continue working. You can either install into a separate directory or over the top of your Version 5 software.

    The installation places the new executable directory ahead of the Version 5 executable directory in your system path.

  2. Ensure that your application is using the compatibility DLL    If necessary, copy the compatibility library dbl50?.dll from your Adaptive Server Anywhere executable directory to a place where your application will locate it.

    For example, you could copy the compatibility library to the same directory as the module of your application that loads it. The file dbl50?o.dll is installed into your Adaptive Server Anywhere executable directory. This directory must be in your path as this library is required by the compatibility library.

    At this stage, your Version 5 application should continue to work as before. However, it will be connecting to your database through the compatibility library rather than directly through the Version 5 interface library.

    If you have any problems at this stage, you need to check how your application locates the interface library. For information, see File locations and the compatibility library.

  3. Create a new connection description    If your application obtains its connection parameters from configuration files, batch files, or the system registry, you should prepare a new description that uses the current version of the database server. For example, Sybase Central stores connection descriptions in the system registry.

  4. Use the new connection description    With this step, you are using all current software and have completed your upgrade. The database itself does not need to be upgraded to work with existing applications.

To upgrade embedded SQL 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 current version of the software.

    Ensure that the installation places the current executable directory ahead of the Version 5 executable directory in your system path.

  2. Ensure that your application is using the compatibility DLL    This step must be carried out at each client machine. If necessary, copy the compatibility library dbl50?.dll from your Adaptive Server Anywhere executable directory to a place where your application will locate it.

    For example, you could copy the compatibility library to the same directory as the module of your application that loads it. The file dbl50?o.dll is installed into your Adaptive Server Anywhere executable directory. This directory must be in your path as this library is required by the compatibility library.

    At this stage, your Version 5 application should continue to work as before. However, it will be connecting to your database through the compatibility library rather than directly through the Version 5 interface library.

    If you have any problems at this stage, you need to check how your application locates the interface library. For information, see File locations and the compatibility library.

  3. Create a new connection description    This step must be carried out at each client machine. If your application obtains its connection parameters from configuration files, batch files, or the system registry, you should prepare a new description that uses the newer database server. This description is for use when the server is upgraded.

    If you store a connection string that uses a StartLine connection parameter specifying dbclient.exe, you must replace this with a new one. The new connection description should contain all the dbclient information as a set of parameters. If your application contains a hard-coded connection string, you need to take extra steps at this point.

    For more information on upgrading StartLine parameters, see Start parameters and the compatibility library.

    For more information about creating connection descriptions that capture the dbclient command information, see Capturing dbclient command information.

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

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


Contents Index Upgrading embedded SQL applications Using the version 5 utilities with Adaptive Server Anywhere