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.