SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[p_grid_sq_types]
    @code ais_code_short = '%'
AS 
    BEGIN
        SELECT  seqt_code ,
                seqt_l1 ,
                seqt_l2 ,
                seqt_l3
        FROM    dbo.sq_types
        WHERE	@code = '%' OR seqt_code = @code
    END
GO
