If you’re getting error 8144 with a message that reads “Procedure or function GENERATE_SERIES has too many arguments specified” in SQL Server, it’s because you’re passing too many arguments to the GENERATE_SERIES()
function.
The GENERATE_SERIES()
function/relational operator accepts a minimum of two arguments, and a maximum of three (at least, this is the case at the time of writing).
So to fix this error, be sure to provide either two arguments or three when using the GENERATE_SERIES()
function.