I have a stored procedure in SQL Server 2000 that performs a search based on parameter values. For one of the parameters passed in, I need a different WHERE cla
WHERE
You could just do something like this:
SELECT * FROM foo WHERE (@param = 0 AND MyColumn IS NULL) OR (@param = 1 AND MyColumn IS NOT NULL) OR (@param = 2)
Something like that.