What is best practice when a function needs to return multiple values?
I write a separate function for each stored procedure I call. Some of these need to return multiple values from stored procedure output parameters.
I've been using global variables for these situations, but I'm wondering if it would be better to use ByRef parameters.
Pros and cons?
I write a separate function for each stored procedure I call. Some of these need to return multiple values from stored procedure output parameters.
I've been using global variables for these situations, but I'm wondering if it would be better to use ByRef parameters.
Pros and cons?