Can anyone tell me if there is a way to pass an array of parameters into a sproc?
I can envision passing a string containing named value pairs, assembling a query in the sproc and executing the assembled string. But I'm afraid doing so will result in a loss of performance as the sproc will not cache correctly because that string would be different each time.
Basically, I need a way of passing in an unknown number of parameters and have the ability to handle that collection once it's in the sproc.
Our business requires that this take place in the database. I don't really have the ability to manage my results from code. In other words, I need a clean datasource, it can't be manipulated after the results are returned.
"It's easier to ask forgiveness than it is to get permission." - Rear Admiral Dr. Grace Hopper
I can envision passing a string containing named value pairs, assembling a query in the sproc and executing the assembled string. But I'm afraid doing so will result in a loss of performance as the sproc will not cache correctly because that string would be different each time.
Basically, I need a way of passing in an unknown number of parameters and have the ability to handle that collection once it's in the sproc.
Our business requires that this take place in the database. I don't really have the ability to manage my results from code. In other words, I need a clean datasource, it can't be manipulated after the results are returned.
"It's easier to ask forgiveness than it is to get permission." - Rear Admiral Dr. Grace Hopper