DATEPART as a parameter

Viewed 13111

I'm guessing this is not possible since the engine doesn't like it, but is there a way (barring dynamic SQL) to pass in a DATEPART as a parameter to a procedure?

5 Answers
Related