SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[p_act_others_lst]
	@type_code ais_code_short,
    @actor_id int
AS 
	set nocount on

	select *
	from vw_act_others
	where	act_type_code = @type_code 
			and ( @actor_id = 0 or act_actor_id = @actor_id ) 
GO
