sp_send_dbmail will not send query results

前端 未结 3 774
挽巷
挽巷 2021-01-02 19:14

I\'ve tried every avenue on every damn forum suggested, but to no avail! Need to send results of SQLPERF(logspace), that have been stored in a table, via sp_send_dbmai

3条回答
  •  情深已故
    2021-01-02 19:17

    Just use a global temp table like ##temp_table. This table will be accessible by all sessions and will remain in database until all sessions that referred it have been closed.

    Local and global temporary tables in SQL Server

提交回复
热议问题