EagleTempest
Technical User
SQL Server 2000
It's probably easier to explain my logic as I could be far off base in my coding attempt.
I want to have a query statement that when is a parameter is not null then the Where statement comes into effect.
Is this possible or is my logic completely wrong?
It's probably easier to explain my logic as I could be far off base in my coding attempt.
I want to have a query statement that when is a parameter is not null then the Where statement comes into effect.
Code:
IF Paramater is not null THEN
Parameter = @Fieldname
ELSE do use parameter at all