October 27, 2004 at 4:04 am
You cannot include GETDATE() inside a UDF, you can however make an input parameter to accept it. It comes from the hole deterministic/non-deterministic rules.
October 27, 2004 at 4:10 am
To add to Antares, here's an example what can happen, when you choose to workaround this GETDATE() - UDF issue with a view, which is sometimes suggested.
http://www.insidesql.de/content/view/100/
It's in German, however the code speaks for itself.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
October 27, 2004 at 8:48 am
Select col_a from some_table
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply