let's say you have defined a view according to:
CREATE VIEW v_name
AS
SELECT * FROM a
JOIN b ON a.col1 = b.col2
Would it be possible to use a query, function or stored procedure to obtain the columns that were joined?
I understand that there are some options that allow for obtaining the tables, using sys.sql_expression_dependencies, sys.views or sys.dm_referenced_entitities(), but they do not allow you to obtain more meta-data than the table that was used.