how to execute table valued function in sql server code example Example: execute table valued function in sql SELECT * FROM udfProductInYear(2017);