SQL Error: Argument data type date is invalid for argument 2 of dateadd function

You new to cast the complete column as an integer before you can use the dateadd function. That means
the following code:

needs to be changed to the code below. Note the convert becomes cast.


Leave a Reply

Your email address will not be published. Required fields are marked *