Use SQL to filter the results of a stored procedure

后端 未结 5 783
悲&欢浪女
悲&欢浪女 2021-02-05 01:41

I\'ve looked at other questions on Stack Overflow related to this question, but none of them seemed to answer this question clearly.

We have a system Stored Procedure ca

5条回答
  •  时光说笑
    2021-02-05 02:10

    You can do an OPENROWSET(), but there are some security/performance issues involved.

    SELECT * 
    FROM OPENROWSET ('SQLOLEDB', 'Server=(local);TRUSTED_CONNECTION=YES;', 'exec mystoredproc')
    

    Traditionally, adding it to a temp variable/table will work.

提交回复
热议问题