Image | Audio | Video |
---|---|---|
X |
Enables a table for audio (DB2Audio data). This API is called once per table. It creates metadata tables to store and manage attributes for audio columns in a table. To avoid the possibility of locking, the application should commit transactions before calling this API. Before calling this API, the application must be connected to a database. It is recommended that after calling this API you issue an SQL COMMIT statement.
Authorization
Control, Alter, SYSADM, DBADM
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 DBaEnableTable( char *tableSpace, char *tableName );
Parameters
If you provide a null value for any part of the table space specification, the default table space for that part is used.
EEE Only: The tablespace specified should be in the same nodegroup as the user table.
Error codes
Examples
Enable the employee table for audio (DB2Audio data) in the table space MYTS. Use defaults for the index and long table spaces:
#include <dmbaudio.h> rc = DBaEnableTable("myts,,", "employee");
Enable the employee table for audio (DB2Audio data). Use default table spaces:
#include <dmbaudio.h> rc = DBaEnableTable(NULL, "employee");