You might use few quick SQL statements to view result column type, by using temp table.
Temp tables is a little better then a view, as they are connection-local scope and will be cleared once disconnect.
All you need is inject few keyword as follow
SELECT
TOP 0 -- to speed up without access data
your,original,columns
INTO #T -- temp table magic
FROM originalTablesJoins
Order by anything
exec tempdb.sys.sp_columns #T
drop table #T
or;
SELECT TOP 0 *
INTO #T
FROM (
select your,original,columns from originalTablesJoins -- remove order by if any
) x
exec tempdb.sys.sp_columns #T
drop table #T
Note: inspired by
View schema of resultset in SQL Server Management Studio
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…