Question

[Here i have 10 checkbox, now I want that if my client select any of this and any number of checkbox selected then Report will Generate and in this coding also I want to use StoredProcedure, now if I go with coding individualy for all Possibilities I have to write 99 StoredProcedure and 99 times Coding, So is there any easy Possible way for this Problem..?? ]

enter image description here

Was it helpful?

Solution

Which database are you using? SQL Server 2008 or higher? If yes then the answer by @user3353613 will be useful. If not then you can pass comma/pipe(|) separated checkbox values to a single parameter to your stored procedure and then you can split the values inside the stored procedure to get what you need.

Hope this helps.

OTHER TIPS

I think you can try Table-Valued parameter. Or you might get some ideas from this post. T-SQL stored procedure that accepts multiple Id values

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top