Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Query from Variable

$
0
0

Hi All,

In SSRS05 I have two datasets;

--Table;
SELECT '['+SCHEMA_NAME(schema_id)+'].['+name+']'
AS SchemaTable
FROM sys.tables 
where name like '%link%'
order by name

--Data;

declare @table varchar(50)

SELECT *
FROM @table

@table is declared as string parameter in the report parameters and from available values from query table.

But when I try running the report it says must declare variable @table.



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>