/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SIM_COUNT_CHECK', 'T_SIM_COUNT_CHECK', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_COUNT_CHECK') CREATE  CLUSTERED INDEX IDX_SIM_COUNT_CHECK ON T_SIM_COUNT_CHECK ( FORGID );


 EXEC P_ALTERPK 'PK_SIM_COUNT_CHECK_ITEMS', 'T_SIM_COUNT_CHECK_ITEMS', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_COUNT_CHECK_ITEMS_FK') CREATE  CLUSTERED INDEX IDX_SIM_COUNT_CHECK_ITEMS_FK ON T_SIM_COUNT_CHECK_ITEMS ( FID );



/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
