I have a stored procedure that needs to do an inner join on a function that returns a table. Trying to call it like so:
INNER JOIN [dbo].[udf_GetBillingInfo(@QuoteID)] billInfo ON quotes.QuoteID = billInfo.QuoteID
gives an error invalid object name dbo.udf_GetBillingInfo(@QuoteID)
Given my requirements I don't think I can just make the function into a view as it has a minor bit of logic in it. How can I join the result? Would I have to assign the function result to a variable or something of that nature?