 EXEC p_AlterPK 'PK_SRC_PURAPTATTACH', 'T_SRC_PURAPTATTACH', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SRC_PURAPTATTACH' AND KSQL_INDNAME = 'IDX_SRC_PURAPTATTACH_FBID')
 CREATE INDEX IDX_SRC_PURAPTATTACH_FBID ON T_SRC_PURAPTATTACH (FBASEDATAID );


 EXEC p_AlterPK 'PK_SRC_SUPAPTATTACH', 'T_SRC_SUPAPTATTACH', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SRC_SUPAPTATTACH' AND KSQL_INDNAME = 'IDX_SRC_SUPAPTATTACH_BID')
 CREATE INDEX IDX_SRC_SUPAPTATTACH_BID ON T_SRC_SUPAPTATTACH (FBASEDATAID );
 



