Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In this case the error is the name. Here is my actual syntax:DECLARE (at)NumberOfyears INT = 30 , @StartDate DATETIME = '2010-01-01'; DECLARE (at)CustOffDate DATE = DATEADD(YEAR, (at)NumberOfYears, (at)StartDate); SELECT (at)CutoffDate; (replaed at sign with (at). The comments here will not let me submit with 'at sign". But my syntax appears to be correct based on your above example
that was it. I'm a moron. I apologize. When removing the "s" I was able to move forward. I think the difference is that I moved on to executing other statements AFTER executing the numberof years etc. I think they need to be in sequence? Either way, thank you for your help.