/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_SBD_TRANSCEIVERTYPE', 'T_SBD_TRANSCEIVERTYPE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SBD_TST_FNO') CREATE INDEX IDX_SBD_TST_FNO ON T_SBD_TRANSCEIVERTYPE ( FNUMBER );


 EXEC P_ALTERPK 'PK_SBD_TRANSCEIVERTYPE_L', 'T_SBD_TRANSCEIVERTYPE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SBD_TST_L_FLID') CREATE INDEX IDX_SBD_TST_L_FLID ON T_SBD_TRANSCEIVERTYPE_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_SBD_BIZTYPEBILLENTITY', 'T_SBD_BIZTYPEBILLENTITY', 'FENTRYID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SBD_constraint.sql **/
