SE_table_create_primarykey_constraint

Creates a PRIMARY KEY constraint for a table.

Usage syntax

LONG SE_table_create
(SE_CONNECTION connection,
const CHAR *table,
SHORT num_columns,
const CHAR **columns,
const CHAR *constraint_name,
const CHAR *config_keyword);

Parameters
connection The connection handle
table The DBMS table name
num_columns The number of columns on which index is created
columns The DBMS column names on which the index is created
constraint_name The constraint name
config_keyword Keyword indicating alternate configuration. The keywords are found in the SDE.DBTUNE table
Description

SE_table_create_primarykey_constraint creates a DBMS PRIMARY KEY constraint on the specified table.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_INVALID_CONNECTION

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_SDE_NOT_STARTED

SE_TABLE_NOEXIST