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

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Run dynamic query

Author  Topic 

mehrdadc48
Starting Member

2 Posts

Posted - 2010-01-06 : 10:19:20
Hi,
I need to run a dynamic query baseed on a parameter.
Actualy I have a comboBox in my report filled with TableNames of my DataSource,
now I want to select all records of the selected table.
I've filled the combo but I'm confused how to run a different and runtime query

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-06 : 10:23:01
why are you determining table name at run time?
Go to Top of Page

behrman
Yak Posting Veteran

76 Posts

Posted - 2010-01-06 : 11:35:46
Hi.
Please refer to the url below:
http://www.mssqltips.com/tip.asp?tip=1160
It maybe useful for you.
Regards,
behrman.

RAQ Report: Web-based Excel-like Java reporting tool
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-01-07 : 02:13:57
quote:
Originally posted by visakh16

why are you determining table name at run time?


May be a dynamic report?
www.sommarskog.se/dynamic_sql.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -