
EXEC P_ALTERPK 'PK_T_MDS_DPSTREELOGEENT', 'T_MDS_DPSTREELOGEENTRY', 'FENTRYID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_DPSTREELOGEENT') CREATE INDEX IDX_MDS_DPSTREELOGEENT ON T_MDS_DPSTREELOGEENTRY ( FID );


