
 EXEC P_ALTERPK 'PK_HAOS_STAFFDIMPERSON', 'T_HAOS_STAFFDIMPERSON', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_STAFFDIMPERSON_ORGPER') CREATE INDEX IDX_HAOS_STAFFDIMPERSON_ORGPER ON T_HAOS_STAFFDIMPERSON ( FORGPERID );
