我自定义了一个函数,我如何在FR调用?
举个列子:
-- Description: 输入一个生日,跟你想要查询的任意一个年份的日期,求出你想要  
--的那年生日的前几天的日期  
--@birth:生日  
--@testdate:你想查询的生日的那一年的任意一个正确日期  
--@days:你想提前几天知道  
CREATE FUNCTION . 
( 
-- Add the parameters for the function here 
@birth datetime ,@testdate datetime ,@days int 
) 
RETURNS datetime 
AS 
BEGIN 
-- Declare the return variable here 
DECLARE @retDate datetime 
set @retDate=dateadd(yy,datediff(yy,@birth,@testdate),@birth) 
if(day(@retDate) = day(@birth) ) 
set @retDate = dateadd(dd,-@days,@retDate) 
else 
set @retDate = null 
return @retDate 
END 
关键是 我如何能在FR里面使用它。