SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

kishoremcp
Starting Member

India
39 Posts

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

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...

Regards
Kishore

visakh16
Very Important crosS Applying yaK Herder

India
52317 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000