I have a custom table type and table function like so...
CREATE TYPE CustomTableType AS TABLE(
Hello INT NULL
)
ALTER function [dbo].[myfunc]
(
@stuff CustomTableType READONLY
) RETURNS TABLE
AS RETURN]
...
Is it possible to call this function without first declaring an instance of the table variable, in a view, for example, where that's not possible? e.g...
SELECT * FROM myfunc((SELECT Field1 FROM Table1))