J
John
Hi
I am using below query to retrieve records from backend sql server 2005 db;
SELECT ID, Company ....
FROM tblClients
WHERE (Status = @status)
Problem is that sometimes I need all records regardless of what is status.
How can I achieve that? Can I add something like OR (Status ="") OR (Status
isNull) in the WHERE clause? If so, would using OR make the retrieval slow?
Thanks
Regards
I am using below query to retrieve records from backend sql server 2005 db;
SELECT ID, Company ....
FROM tblClients
WHERE (Status = @status)
Problem is that sometimes I need all records regardless of what is status.
How can I achieve that? Can I add something like OR (Status ="") OR (Status
isNull) in the WHERE clause? If so, would using OR make the retrieval slow?
Thanks
Regards