Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Storing results of sp_helpmonitorhelpsubscription into a table?

$
0
0

Hi All,

I am trying to create a query that will store the results of helpmonitorhelpsubscription into a table so I can use that for an SSRS report eventually, to show the current status of my subscriptions.

I've tried:

SELECT * INTO #MyTempTable FROM OPENROWSET('SQLNCLI', 'Server=(local);Trusted_Connection=yes;','EXEC distribution..sp_replmonitorhelpsubscription 

@publisher =null,@publisher_db =null,@publication_type=0 '

)

But I get this error:

Msg 7355, Level 16, State 1, Line 2

The OLE DB provider "SQLNCLI" for linked server "(null)" supplied inconsistent metadata for a column. The name was changed at execution time.

Any ideas? Basically, we have 4 distributors globally and I want to run the EXEC statement for each of the three @publcication_type (0,1,2) against each server, store the results in a table and then create an SSRS report off it.

Thanks in advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>