SE_table_rename

Renames a table.

Usage syntax

LONG SE_table_rename
(SE_CONNECTION connection,
const CHAR *old_name,
const CHAR *new_name);

Parameters
connection The connection handle
old_name The current name of the DBMS table
new_name The new name of the DBMS table
Description

SE_table_rename changes the name of the specified DBMS table. If the table is registered, the registration entry is updated to reflect the new name. If the table is spatially enabled, the layer definition is updated. Any associated mango definitions are also updated.

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_DB_IO_ERROR

SE_INVALID_CONNECTION

SE_INVALID_POINTER

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_SDE_NOT_STARTED

SE_TABLE_EXISTS

SE_TABLE_NOEXIST

Notes

•  The user must have appropriate DBMS privileges to rename a table.