You can use a User-defined function or a view instead of a procedure. A procedure can return multiple result sets, each with its own schema. It's not suitable for using in a SELECT statement
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)