/**Begin D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FCS_TDALOG_H', 'T_FCS_TDALOG_H', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FCS_TDALOG_H') CREATE INDEX IDX_T_FCS_TDALOG_H ON T_FCS_TDALOG_H ( FORGVIEWID ,FORG );

EXEC p_DropIdx 'IDX_T_FCS_DATASNAP', 'T_FCS_DATASNAP';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_FCS_DATASNAP') CREATE INDEX IDX_T_FCS_DATASNAP ON T_FCS_DATASNAP ( FORGID, FNUMBER, FFORMID );

/**End D:\PDM_UPGRADE\PDM1\FCS_constraint.sql **/
