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

DROP XADATASOURCE

Use the DROP XADATASOURCE statement to drop a previously defined XA-compliant data source from the system catalog of 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--XADATASOURCE--xa_source--RESTRICT---------------------><
 
Element Description Restrictions Syntax
xa_source The XA-compliant data source to drop Must be present in the sysxadatasources system catalog table Identifier

Usage

The RESTRICT keyword is required. You must be the owner of the XA data source or hold DBA privileges to drop an access method.

The following statement drops the XA data source instance called NewYork that is owned by user informix.

DROP XADATASOURCE informix.NewYork RESTRICT;

You cannot drop an access method if it is being used in a transaction that is currently open. If an XA data source has been registered with a transaction that is not complete, you can drop the data source only after the database is closed or the session ends.

Related Information

Related statements: CREATE XADATASOURCE, CREATE XADATASOURCE TYPE, DROP XADATASOURCE TYPE

For a description of the RESTRICT keyword, see Specifying RESTRICT Mode. For information on how to use XA data sources, see the IBM Informix DataBlade API Programmer's Guide.

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