• ezhil (4/30/2009)


    Thanks arun.

    Your third option works for me.:-)

    The third option can be re-written as

    SELECT * FROM table WHERE ( @a IS NULL OR Col1 = @a )

    [/CODE]

    --Ramesh