|
我在sql-server上定义了一个自定义函数如下:
create FUNCTION dbo.fulltype (@id int)
RETURNS nvarchar(50)
AS
BEGIN
declare @fullname nvarchar(50)
SET @fullname=''
while @id>0
begin
set @fullname =(select typename from type where id=@id)+case @fullname when '' then '' else [url=http://www.office-cn.net/vvb/mailt'_'+@fullname]'_'+@fullname[/url] end
set @id=(select fid from type where id=@id)
end
RETURN @fullname
END
在adp中想调用,如:me.caption=currentproject.connect.execute("fulltype 82" ) 老出错"类型
不匹配",如何解决?该函数已在sql上调试过没问题. |
|