Displaying ASA 9.0.x and Sybase IQ 12.5 stored procedures

CR #426349

Description: Enterprise Explorer and Database Explorer may show stored procedures as user-defined functions when you create a new Sybase IQ 12.5 or Adaptive Server Anywhere 9.0.2 database from an existing database server.

Workaround: After you create the database, and before you run any existing stored procedures or functions, run asa_sql.sql to correct the display. This script is in the directory where jConnect 6 is installed.

StepsCorrectly displaying IQ 12.5 or ASA 9.0.2 stored procedures and functions

  1. In Database Explorer, right-click the newly created Sybase ASIQ or ASA connection profile, and choose Connect from the context menu.

  2. From the main menu bar choose Window | Preferences, expand Sybase, Inc. and Database Development in the left frame of the Preference dialog box, and choose Connection Level Options.

  3. In the Sybase IQ_12.6.x or Adaptive Server Anywhere_9.x tab, click the Quoted identifier check box, then click Apply and OK.

  4. Click on the main toolbar in the Database Development perspective.

  5. In the Choose a .sql File to Execute dialog box, browse to the appropriate sql_asa.sql script:

  6. In the Select Profile for the Editor dialog box, enter the appropriate database type:

    Enter the newly created ASIQ or ASA profile name for the connection profile name, and click OK.

  7. Ignore any error dialogs that indicate tables are in use or already exist, and click OK to continue executing the SQL file. Database Explorer and Enterprise Explorer show stored procedures and user-defined functions correctly.

  8. Choose Window | Preferences, expand Sybase, Inc. and Database Development, and choose Connection Level Options. In the Sybase IQ_12.6.x or Adaptive Server Anywhere_9.x tab, click the Quoted identifier check box to restore its original setting. Click Apply and OK.