Report Portal
Home
Download
Customers
Customers
Testimonials
Reviews
Resources
Tutorial
Documentation
Support
Forum
FAQ
Services
Company
About us
News/Events
Contact us
Resellers
Live Demo
ReportPortal
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
Username:
Password:
Save Password
Forgot your Password?
All Forums
ReportPortal General Forum
Report Portal General Issues
SQL Server Stored Procedure for Multi-Select
New Topic
Reply to Topic
Printer Friendly
Author
Topic
dhewes
USA
2 Posts
Posted - 06/06/2016 : 11:55:43
How would I create a SQL Server stored procedure parameter for multi-select filter?
Dave
admin
1637 Posts
Posted - 06/06/2016 : 12:44:28
The stored procedure is used in the report or the multi-select filter?
dhewes
USA
2 Posts
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
1637 Posts
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
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
ReportPortal General Forum
Report Portal Wish List
Report Portal Installation
Report Portal General Issues
Report Portal Build History
SQL Server General Issues
SQL Server Reporting Services (SSRS)
SQL Server Parallel Data Warehouse (PDW)
SQL Server Integration Services (SSIS)
SQL Server Data Services (SSDS)
SQL Server Analysis Services (SSAS)
Microsoft Business Intelligence (BI)
XMLA Browser
XMLA Browser for Microsoft SQL Server 2005
XMLA Browser for Microsoft SQL Server 2000
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
ReportPortal
© 2000-2002 Snitz Communications