Hi,
Is it possible to call a stored procedure and pass to it a number of parameters that can vary at run-time (from 1 upto the max 2100). I would like the stored procedure to be flexible enough to determine how many parameters are present and then build up a where clause within a loop. I know that I could declare all 2100 parameters within the SP and then check for a null value within the loop, but is there a cleaner solution?
Thanks,
Adrian.
Is it possible to call a stored procedure and pass to it a number of parameters that can vary at run-time (from 1 upto the max 2100). I would like the stored procedure to be flexible enough to determine how many parameters are present and then build up a where clause within a loop. I know that I could declare all 2100 parameters within the SP and then check for a null value within the loop, but is there a cleaner solution?
Thanks,
Adrian.