Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements >

DROP ACCESS_METHOD

Use the DROP ACCESS_METHOD statement to remove a previously defined access method from the database.

Only Dynamic Server supports this statement, which is an extension to the ANSI/ISO standard for SQL.

Syntax

Read syntax diagramSkip visual syntax diagram>>-DROP--ACCESS_METHOD--access_method--RESTRICT----------------><
 
Element Description Restrictions Syntax
access_method Name of access method to drop Must be registered in sysams system catalog table; cannot be a built-in access method Identifier
owner Owner of the access method Must own the access method Owner Name

Usage

The RESTRICT keyword is required. You cannot drop an access method if virtual tables or indexes exist that use the access method. You must be the owner of the access method or have DBA privileges to drop an access method.

If a transaction is in progress, the database server waits to drop the access method until the transaction is committed or rolled back. No other users can execute the access method until the transaction has completed.

Related Information

Related statements: ALTER ACCESS_METHOD and CREATE ACCESS_METHOD

For a description of the RESTRICT keyword, see Specifying RESTRICT Mode. For more information on primary-access methods, see the IBM Informix Virtual-Table Interface Programmer's Guide.

For more information on secondary-access methods, see the IBM Informix Virtual-Index Interface Programmer's Guide. For a discussion of privileges, see the GRANT statement or the IBM Informix Database Design and Implementation Guide.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]