Dear Anitha,
are the parameters param1 , param2 are used for the where conditions of select stmt. ???
if yes then u can try this ...
create proc sample1
@param1 as numeric(9,0), @param2 as numeric(9,0)
As
begin
select *
from test1
where field1 = isnull(@param1, field1)
and field2 = isnull(@param2, field2)
end