|
I am trying to print out a range of Month and Years between two dates. The code fails at the first Set statement.
(comments are locked)
|
|
You need to wrap the function body in a BEGIN ... END block as per http://msdn.microsoft.com/en-us/library/aa258261(SQL.80).aspx.
(comments are locked)
|
|
Here's a version of your function that should work. The "exit" keyword does not exist, and your RETURN statement was located too high.
(comments are locked)
|

