Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Query that needs to be used in Cascading parameters report

$
0
0
Hi All,I need a small help in SSRS report.My report has 5 parameters. @ApplicationName - 4 Names comes in the dropdown menu@EnvironmentName @ServerName @StartDateTime @EndDateTime Everything works fine. Only help needed here is. Out of 4 names that pop up in the drop down menu, Only the @AppicationName 'Informatica' needs to be used with Query1. Rest all 3 @ApplicationName need to use Query2Help help me how to build the query in this condition. I tried IF Condition which is not working. Query1:[code="sql"]SELECT NetworkName,SampleTime, [Max] FROM vinny..PerfData_CPUServerView (nolock) Where NetworkName in (@ServerName) And SampleTime >= @StartDateTime and SampleTime <= CONVERT(date, DATEADD(dd, 1, @EndDateTime), 101) Order by SampleTime asc[/code]Query2:[code="sql"]select NetworkName,SnapshotTime, ProcessUsePct from vinny..SqlResourceUseHistoricView (NOLOCK) Where NetworkName in (@ServerName) And Snapshottime >= @StartDateTime and SnapshotTime <= CONVERT(date, DATEADD(dd, 1, @EndDateTime), 101) Order by SnapshotTime asc[/code]

Viewing all articles
Browse latest Browse all 2791

Trending Articles