简体   繁体   中英

SQL stored procedure with multiple Select statements

I am using a Stored procedure, which I just can execute not edit.This SP has two select statement results. I want to use only second results. How can I achieve this without editing.

在此处输入图像描述

Thanks in advance

If your server is configured for DATA ACCESS you can use this

SELECT groupID, value1, ID 
FROM OPENQUERY (MYSERVER, 'EXEC myStoreProcedure')

allowing you to to chose columns from select statements as though they were a table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM