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 :

  1. how pass parameters sp using exec sp_ap_ytd_payments1 ?
  2. from crystal reports, how should user enter second argument ? comma delimited list?

i found answer myself.

  1. exec sp_ap_ytd_payments1 2013, '925,926,txr'
  2. from crystal, user enter comma-dlimited list companies parameter.

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -