 EXEC p_AlterPK 'PK_BD_STATUS_SCOPE', 'T_BD_STATUS_SCOPE', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_STATUS_SCOPE' AND KSQL_INDNAME = 'IDX_BD_STATUS_SCOPE_FK')
 CREATE INDEX IDX_BD_STATUS_SCOPE_FK ON T_BD_STATUS_SCOPE (FID );