Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Parameter Search Expand / Collapse
Author
Message
Posted Thursday, February 25, 2010 1:48 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 6:51 AM
Points: 18, Visits: 154
I would like to let users choose a list of customers. The customer table is large, approx 30,000 rows. In order for the user to not have to scroll back and forth through this parameter list, I would like them to be able to search for a customer by entering a number. Once they have finished choosing the customers they would like, they should be able to run the report returning data for all customers in their list.
Post #872991
Posted Thursday, February 25, 2010 1:53 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Thursday, December 18, 2014 9:58 AM
Points: 13,872, Visits: 9,600
Would it work to have them type in a delimited list? If so, the query for that is easy.

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
Post #872993
Posted Thursday, February 25, 2010 1:56 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 6:51 AM
Points: 18, Visits: 154
No, because they may not know the entire customer number. Truly I would like them to be able to enter either an entire or partial customer number, or a partial or entire customer name. I have a query that I currently use with SSAS that allows the user to search that way, however I can only run for one customer at a time.
Post #872994
Posted Thursday, February 25, 2010 1:57 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 6:11 AM
Points: 2,655, Visits: 6,017
Within SSRS itself this will be somewhat complex. I can see this being done a couple of ways, you could create multiple prompts, where they could enter a set number of customer numbers, say perhaps 10. Make the first one mandatory, the rest optional.

The second way, would be to use a string and let them enter a comma delimited list. You'd need to parse the list in your query.

Probably the best way particularly if you already have a custom front end for your reporting solution, is to capture all of the customer numbers in the custom front end allowing the application to have the user verify that customer 1 was john smith instead of customer 2 who was jane smith. Then you could pass that as a delimited string to SSRS, parse it in your query and you'd be all set.

-Luke.


To help us help you read this

For better help with performance problems please read this
Post #872996
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse