SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[p_grid_sq_sequences]
    @type_code ais_code_short,
    @sequence_code ais_code_short
AS 

select *
from sq_sequences
where	seq_type_code = @type_code
		and ( @sequence_code = '%' or seq_sequence_code = @sequence_code)
GO
