/**Begin C:\Users\rd_jinbo_chen\Desktop\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_SHAREDIMDATAENTRY', 'T_EB_SHAREDIMDATAENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_SHAREDIMENSIONDATA', 'T_EB_SHAREDIMENSIONDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_EB_SHAREDIMENSIONDATA') CREATE INDEX IX_EB_SHAREDIMENSIONDATA ON T_EB_SHAREDIMENSIONDATA ( FBILL ,FFIELDNUMBER );



/**End C:\Users\rd_jinbo_chen\Desktop\PDM_UPGRADE\PDM1\EB_constraint.sql **/
