Solved

Select a specified month

Posted on 2010-11-30
1
199 Views
Last Modified: 2012-06-27
Hi I need to be able to select a specified month from the attached script when i put it in Reporting services. Please note that the are may rows with the same month in as this is the querymonth that the query was logged

I am not sure if i need to use a delcare date or how to put a where clause in so the user can chose a month
Select	QueryYear
		,QueryMonth
		,QueryMonth_No
		,BusinessDays
		,RealDays
		,employmentstatus
		,Region_Name
		,BusinessChannel
		,measure
		,ApplicationType_Name
		,QueryType_Name
		,QueryStatus_Name
		,QueryLevel1
		,querylevel2
		,querylevel3
		,Volume
From dbo.Query_Management_Dashboard

Open in new window

0
Comment
Question by:Davesm
1 Comment
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 34238161
Create a new parameter Month on the report (@month) with the 12 possible values.

configure the dataset :

Select ...
From ...
Where QueryMonth in (@month)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question