June 9, 2004 at 11:18 pm
The first 2 queries work (obviously) but the third will not accept [b.investID] as a parameter.
Anyone know the reason?
Can't pass a parameter through a query to a UDF that represents a Table?
That doesn't sound right.
From App_position b
Where b.portID = @PortID
From App_position b
Where b.portID = @PortID
From App_position b
Where b.portID = @PortID
-- Incorrect syntax near '.' --
June 10, 2004 at 1:46 am
Could you post the function?
It's pretty hard to see whats happening without the source.
/Kenneth
June 10, 2004 at 2:14 am
You can only do this if TestSharesTable is a scalar function.
June 10, 2004 at 2:57 pm
You can try this... (if your function returns "total")
Select Sum( dbo.TestSharesTable1( b.InvestID, @Count )  as total
From App_position b
Where b.portID = @PortID
June 10, 2004 at 11:35 pm
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply