IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_gen_shp_base_proc]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_gen_shp_base_proc]
GO
create procedure [dbo].[mps_gen_shp_base_proc](
@cmpid int
)
as
begin
set nocount on
-- 这里要判断一下，是否可以生成
exec mps_gen_shpnew_beforecreate @cmpid 
exec mps_gen_shpnew_aftercreate @cmpid 
exec mps_gen_shpmodify @cmpid
exec mps_gen_shpmodify_before @cmpid
exec mps_gen_shpcheck  @cmpid
exec mps_gen_shpmodify_after @cmpid
exec mps_gen_shpdelete_before @cmpid
exec mps_gen_shpdelete_after @cmpid
exec mps_gen_shpdelete_trg @cmpid
exec mps_gen_shpcreate_trg @cmpid
exec mps_gen_shpmodify_trg @cmpid
set nocount off
end