The OPENROWSET Trick: Accessing Stored Procedure Output In A SELECT Statement
This nifty little trick will allow you, with some limitations, to treat the output of a stored procedure as a named SQL record set rather than creating a table and going through an INSERT.. EXEC process. The output of the stored procedure is then available for direct manipulation in SELECT statements, JOINs, etc.
No comments:
Post a Comment