February 26, 2007 at 9:30 pm
CalcDate is a table valued function, so I don't think you can use it there.
February 27, 2007 at 12:48 am
The function is not recognized when I execute the query.
The only way I have been able the function to work is through statement:
select date from dbo.calcdate('20070227',-4) But I can use this in my other query
Is there an alternative to using a function here?
February 27, 2007 at 5:33 am
Yep... I missed that... thanks Michael...
Jeremy, you need to change your function to a scalar function that returns a DATETIME instead of a table... then it should work ok...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply