/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SM_constraint.sql **/
EXEC p_DropIdx 'IDX_SM_SALORDER_FORGID', 'T_SM_SALORDER';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_SALORDER_FORGID') CREATE INDEX IDX_SM_SALORDER_FORGID ON T_SM_SALORDER ( FORGID ,FBIZDATE  DESC ,FBILLNO  DESC ,FID );


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