IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_update_source]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_update_source]
GO
CREATE procedure [dbo].[mps_update_source](
@objtype varchar(20),
@objid int,
@objid2 int,
@sourcename nvarchar(200) ,
@resultfieldsvarchar(1000),
@displayfieldnvarchar(4000),
@orderfieldsvarchar(200),
@wintitlenvarchar(100),
@conditionnvarchar(4000),
@multi int,
@insertsql nvarchar(4000) ,
@pickjs nvarchar(4000) ,
@winwidth varchar(20)
) as
begin

update mps_biztype_source set 
bizs_resultfields=@resultfields,
bizs_displayfield=@displayfield,
bizs_orderfields=@orderfields,
bizs_wintitle=@wintitle,
bizs_condition=@condition,
bizs_multi=@multi,
bizs_width=@winwidth,
bizs_insertsql=@insertsql ,
bizs_js=@pickjs  
where bizs_type=@objtype and 
bizs_bizid=@objid and 
bizs_ord2tag=@objid2 and 
bizs_source=@sourcename 

end