ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 SQL Server Stored Procedure for Multi-Select

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Message:

* HTML is ON
* Forum Code is OFF
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dhewes Posted - 06/06/2016 : 11:55:43
How would I create a SQL Server stored procedure parameter for multi-select filter?

Dave
3   L A T E S T    R E P L I E S    (Newest First)
admin Posted - 06/06/2016 : 13:16:40
What kind of parameter does your stored procedure have (varchar, table)?

In case your stored procedure accepts table parameter, you can pass it like this:

declare @list table (fname varchar(20));

insert into @list
select fname from employee where fname in '::1';


exec [usp_someSP_ByID] @list
dhewes Posted - 06/06/2016 : 12:55:00
The report.

Looks like it is passing back something like the following


exec [usp_someSP_ByID] ('123', '456', '789')

admin Posted - 06/06/2016 : 12:44:28
The stored procedure is used in the report or the multi-select filter?

ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page