
EXEC P_DROPIDX 'IDX_T_SEC_USERPOSITION_L_FENTRYID', 'T_SEC_USERPOSITION_L';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SEC_USERPOSITION_L_ENTRY') CREATE INDEX IDX_SEC_USERPOSITION_L_ENTRY ON T_SEC_USERPOSITION_L (FENTRYID, FLOCALEID);