hi,
i have this stored proc. , very simple in fact :
-------
CREATE PROCEDURE procstor1
@item1 varchar(10),
@item2 varchar(10),
@item3 varchar(10)
...
as
select * from table1 where
item1 = @item1 and
item2 = @item2 and
item3 = @item3 ...
-------
it's working very well when all variables have some data in each one
but ..
what can I modify on this SP to transform "@item1 = null" in "item1 is not null" ...I mean when @item is null to return "item1<>null" and so on...
10x
D.
i have this stored proc. , very simple in fact :
-------
CREATE PROCEDURE procstor1
@item1 varchar(10),
@item2 varchar(10),
@item3 varchar(10)
...
as
select * from table1 where
item1 = @item1 and
item2 = @item2 and
item3 = @item3 ...
-------
it's working very well when all variables have some data in each one
but ..
what can I modify on this SP to transform "@item1 = null" in "item1 is not null" ...I mean when @item is null to return "item1<>null" and so on...
10x
D.