DECLARE @Table1 NVARCHAR(100) = 'ABR_temp.dbo.Clist' DECLARE @query NVARCHAR(max) SET @query = 'Select * from ' + @Table1 EXEC (@query)
Select 'ABR_temp.dbo.Clist' as Table1
Select * from ?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)