SQL/MX 2.x Installation and Management Guide (G06.24+, H06.03+)

Adding, Altering, and Dropping SQL/MX Database
Objects
HP NonStop SQL/MX Installation and Management Guide523723-004
9-35
Dropping SQL/MP Aliases
Dropping SQL/MP Aliases
Use the DROP SQLMP ALIAS statement to drop an SQL/MP alias from a schema
(remove its mapping from an SQL/MX ANSI name to a physical SQL/MP file name).
The DROP SQLMP ALIAS statement does not cause the underlying SQL/MP object to
be dropped. Similarly, dropping an underlying SQL/MP object does not cause any
SQL/MP aliases to be dropped. Those aliases remain unchanged and orphaned.
For more information, see the SQL/MX Reference Manual.
Steps for Dropping an SQL/MP Alias
1. Start an MXCI session. Enter a LOG command to initiate a log file for statements
and commands entered in this session. Keep the log for your records.
2. Determine the name of the SQLMP alias that you wish to drop.
3. Use the DISPLAY USE OF command to identify which user modules are
associated with this object. See the similarity check criteria in the SQL/MX
Programming Manual for C and COBOL and the SQL/MX Programming Manual for
Java to determine if your changes are likely to cause similarly check to fail and
force automatic recompilation. If they will, you should SQL compile these modules
after making the changes to avoid expensive automatic recompilations at run time.
SQL applications that are running while you make these changes will still undergo
automatic recompilation.
For information about explicit and automatic recompilation, see the SQL/MX
Programming Manual for C and COBOL and the SQL/MX Programming Manual for
Java. For information about using DISPLAY USE OF, see Checking Module
Dependencies With DISPLAY USE OF on page 11-20 and the SQL/MX Reference
Manual.
4. Enter the DROP SQLMP ALIAS statement.
5. Revise the application source code as needed to reflect your changes to the
database. Process and compile the updated source file. For more information, see
the SQL/MX Programming Manual for C and COBOL and the SQL/MX
Programming Manual for Java.
For more information and examples of dropping SQL/MP aliases, see the SQL/MX
Reference Manual.
Dropping SPJs
For information about and examples of dropping SPJs, see the SQL/MX Guide to
Stored Procedures in Java.