SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Parameter Search


Parameter Search

Author
Message
tebalsamo
tebalsamo
Grasshopper
Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)

Group: General Forum Members
Points: 24 Visits: 198
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.
GSquared
GSquared
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24783 Visits: 9730
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
tebalsamo
tebalsamo
Grasshopper
Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)

Group: General Forum Members
Points: 24 Visits: 198
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.
Luke L
Luke L
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4152 Visits: 6128
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search