EXEC p_DropIdx 'IDX_PERM_DATARULE_ENTRY', 'T_PERM_DATARULE_ENTRY';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_DATARULE_ENTRY') CREATE INDEX IDX_PERM_DATARULE_ENTRY ON T_PERM_DATARULE_ENTRY ( FID ,FPERMITEMID );

 EXEC p_AlterPK 'PK_T_PERM_DATARULE_PROP', 'T_PERM_DATARULE_PROP', 'FENTRYID', '1';
 
 