This looks like the bug described in MSKB 888530:
http://support.microsoft.com/default.aspx?scid=kb;en-us;888530

Signature
Hope this helps.
Dan Guzman
SQL Server MVP
> create function dbo.tfFoo()
> returns @t table
[quoted text clipped - 72 lines]
>
> Micle.
Micle - 05 Oct 2005 13:40 GMT
Hi!
Applies to section in bug description:
Microsoft SQL Server Standard Edition.
Our version:
select @@version
Result:
Microsoft SQL Server 2000 - 8.00.2040 (Intel X86)
May 13 2005 18:33:17
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: )
Micle.
> This looks like the bug described in MSKB 888530:
>
[quoted text clipped - 76 lines]
>>
>> Micle.
Dan Guzman - 05 Oct 2005 14:13 GMT
I believe the applies to list should include the other SQL 2000 editions as
well. I submitted this feedback using the form at the bottom of the page.

Signature
Hope this helps.
Dan Guzman
SQL Server MVP
> Hi!
>
[quoted text clipped - 95 lines]
>>>
>>> Micle.