Thanks did search the Net could not find anything that is helping me will look and see what you have giving me helps.
This is what I needed
http://weblogs.asp.net/rmclaws/archive/2004/02/18/75381.aspx
Thanks so much dequadin!
This is the important part:
((@Param1 IS NULL) OR (col1 = @Param1)) AND
((@Param2 IS NULL) OR (col2 = @Param2)) AND
((@Param3 IS NULL) OR (col3 = @Param3))
So when I execute I can do something like this:
exec TestProc @Param1 = '111', @Param2 = '222' or
exec TestProc @Param1 = '111' or
exec TestProc @Param2 = '222'
and get different results.
Thanks again!
This is what I needed
http://weblogs.asp.net/rmclaws/archive/2004/02/18/75381.aspx
Thanks so much dequadin!
This is the important part:
((@Param1 IS NULL) OR (col1 = @Param1)) AND
((@Param2 IS NULL) OR (col2 = @Param2)) AND
((@Param3 IS NULL) OR (col3 = @Param3))
So when I execute I can do something like this:
exec TestProc @Param1 = '111', @Param2 = '222' or
exec TestProc @Param1 = '111' or
exec TestProc @Param2 = '222'
and get different results.
Thanks again!