LeonelSanchezJr
Programmer
My stored procedure has 5 Input Parameters. Three of these parameters may be null.
My input parameters that can be blank are @StationCode,
@CustCode and @DocType.
If the @StationCode is blank, I will not use the @StationCode in my WHERE clause. I.E. Include all stations.
Same with the @DocType; however, the user may add up to 2 @DocType. Example: "ABC", and "DEF".
How can I do this?
My input parameters that can be blank are @StationCode,
@CustCode and @DocType.
If the @StationCode is blank, I will not use the @StationCode in my WHERE clause. I.E. Include all stations.
Same with the @DocType; however, the user may add up to 2 @DocType. Example: "ABC", and "DEF".
How can I do this?