Calling an in-line TVF with named parameters, what is the proper syntax?
问题 I tried calling an in-line TVF with positional parameters and it works fine: SELECT MyTable.Col1, (SELECT TvfColumn FROM ufnGetData(MyTable.Col1, MyTable.Col2)), MyTable.Col2 FROM MyTable Then I tried to name the parameters to the TVF and it does not parse: SELECT MyTable.Col1, (SELECT TvfColumn FROM ufnGetData(@Param1=MyTable.Col1, @Param2=MyTable.Col2)), MyTable.Col2 FROM MyTable The function looks something like: CREATE FUNCTION dbo.ufnGetData ( @Param1 INT, @Param2 INT ) RETURNS TABLE AS