How to pass parameter values to SQL query


That tries to put the string "SELECT" into @CutOffDate not the value.  It would not work anyway as multiple values would try and go into the variable.

That tries to put the string "SELECT" into @CutOffDate not the value. It would not work anyway as multiple values would try and go into the variable.