sql - Stored Procedure Parameters and Crystal Reports -
i creating stored procedure used data source crystal report.
the stored proc takes 2 input parameters - int , comma delimited string list
create procedure sp_ap_ytd_payments1 @year int, @companies nvarchar(max) -- sp code here
i realize have convert string list array before using in clause.
i have 2 questions :
- how pass parameters sp using exec sp_ap_ytd_payments1 ?
- from crystal reports, how should user enter second argument ? comma delimited list?
i found answer myself.
- exec sp_ap_ytd_payments1 2013, '925,926,txr'
- from crystal, user enter comma-dlimited list companies parameter.
Comments
Post a Comment