makeitwork09
Technical User
Hello,
I will be using Microsoft SQL Server 2005 for a stored procedure. My plan is to have a particular select statment depending on one of the values passed in from a parameter.
In essence, depending on the parameter there is one column I want to eliminate from the select statement. I was wondering what is the best way to approach that?
Please note, the select list will have about 20 items, but like mentioned above, based on the value of a parameter I want to exclude one of the list items.
Thanks in advance for the advice.
I will be using Microsoft SQL Server 2005 for a stored procedure. My plan is to have a particular select statment depending on one of the values passed in from a parameter.
In essence, depending on the parameter there is one column I want to eliminate from the select statement. I was wondering what is the best way to approach that?
Please note, the select list will have about 20 items, but like mentioned above, based on the value of a parameter I want to exclude one of the list items.
Thanks in advance for the advice.