How to execute Table valued function
A TVF (table-valued function) is supposed to be SELECTed FROM. Try this:
select * from FN('myFunc')
You can execute it just as you select a table using SELECT
clause. In addition you can provide parameters within parentheses.
Try with below syntax:
SELECT * FROM yourFunctionName(parameter1, parameter2)