Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

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 24955

Trending Articles