Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 Query Issue for SSRS
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

41 Posts

Posted - 01/08/2014 :  00:33:52  Show Profile  Reply with Quote

I have a query which i have in SQL runs without any problem which is dynamic. When I put the same in SSRS, it is asking me to define the parameter. I have already declared and set the parameter in SQL query and even then i am facing the same issue.

Please help me the workaround...


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 01/08/2014 :  06:45:59  Show Profile  Reply with Quote
for ssrs to pick up fields and parameters correctly the query metadata has to be static. so what you need to do is first add static query as source and create the metadata and parameters. Once its all set replace static query with dynamic counterpart. I assume in nay case your resultset matadata will not change otherwise SSRS will break and start complaining of missing columns.

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000