Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stored Procedure

Author  Topic 

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2006-10-06 : 09:16:45
I have two functions, A, B which returns STRING and TABLE respectively. Now i wants to get the A's return value as parameter in B, which i wants to use in SP

thans in advance,

Mahesh

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-06 : 09:20:44
for table function (your function B) you can only pass in a constant or variable.

Assign the output of A to a variable and pass into function B

select @var = dbo.A()

select *
from dbo.B(@var)



KH

Go to Top of Page

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2006-10-06 : 09:27:38
thanks a lot KHTan

Mahesh
Go to Top of Page
   

- Advertisement -