IBM Books

Image, Audio, and Video Extenders Administration and Programming

DBaIsTableEnabled


Image Audio Video
  X  

Determines whether a table has been enabled for audio (DB2Audio data). The application must be connected to a database before calling this API.

Authorization

None

Library file
OS/2 and Windows AIX, HP-UX, and Solaris
dmbaudio.lib libdmbaudio.a (AIX)

libdmbaudio.sl (HP-UX)

libdmbaudio.so (Solaris)

Include file

dmbaudio.h

Syntax

long DBaIsTableEnabled(
      char *tableName,
      short *status
      );

Parameters

tableName (in)
A table name.

status (out)
Indicates whether the table is enabled. This parameter returns a numeric value. The extender also returns a constant that indicates the status. The values and constants are:

1
MMDB_IS_ENABLED

0
MMDB_IS_NOT_ENABLED

-1
MMDB_INVALID_DATATYPE

Error codes

MMDB_SUCCESS
API call processed successfully.

MMDB_RC_NO_AUTH
Caller does not have the proper access authority.

MMDB_RC_NOT_CONNECTED
Application does not have valid connection to a database.

Examples

Determine if the employee table is enabled for audio (DB2Audio data):

#include <dmbaudio.h>
 
rc = DBaIsTableEnabled("employee", &status);


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]