Subquery of https://data.stackexchange.com/stackoverflow/query/835150 ...returns top 50 records from table specified.
Q&A about the site for members of the workforce navigating the professional setting
declare @sql nvarchar(50) = 'select top 50 * from '+##table:string## execute sp_executesql @sql go