declare @table varchar(20)
set @table='table_name'
exec('select * from '+@table+)