I'm getting syntax error when trying to execute table valued function.
select * from fn_security(select R.rk from dbo.LINK R)
Error:
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'select'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ')'.
What am I doing wrong? how to execute this?