getdate() in UDF
From: EdAk (anonymous_at_discussions.microsoft.com)
Date: 03/16/04
- Next message: Erland Sommarskog: "Re: Version Control?"
- Previous message: NWx: "Using CASE statement to build different where clause"
- Next in thread: Erland Sommarskog: "Re: getdate() in UDF"
- Reply: Erland Sommarskog: "Re: getdate() in UDF"
- Reply: Tom Moreau: "Re: getdate() in UDF"
- Reply: Ray Higdon: "Re: getdate() in UDF"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 15:26:07 -0800
this question seems basic and trivial but i'm stumped
code snipped from UDF....
declare @rtnval int
set @rtnval = 0
if @pm < getdate() set @rtnval = 1
when attempting to create the UDF i get the following error.
"Invalid use of 'getdate' within a function"
why?
the only thing i want to do is test if the variable @pm is less than the current system date.
Ed.
- Next message: Erland Sommarskog: "Re: Version Control?"
- Previous message: NWx: "Using CASE statement to build different where clause"
- Next in thread: Erland Sommarskog: "Re: getdate() in UDF"
- Reply: Erland Sommarskog: "Re: getdate() in UDF"
- Reply: Tom Moreau: "Re: getdate() in UDF"
- Reply: Ray Higdon: "Re: getdate() in UDF"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|