Re: Top n dynamic sql by Ravi
Ravi
Thu Aug 05 18:32:03 CDT 2004
Use a query expression as follows: ="select top " &
Parameters!Report_Parameter_0.Value & " * From titles"
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Dave Foderick" <spam@islove.com> wrote in message
news:105801c47b3d$b0b797e0$a401280a@phx.gbl...
> I would like to use a top n query as the source for my
> report where n is a parameter. Can I use the sql embedded
> in the report for this or do I have to use a stored
> procedure?
>
> In general, can I use dynamic sql for my report?
>
> TIA,
> Dave