Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: An INSERT EXEC statement cannot be nested error

    This worked for me:

    INSERT INTO MyDB.dbo.replStatus

    SELECT a.*

    FROM OPENROWSET

    ('SQLNCLI', 'Server=DBServer;Trusted_Connection=yes;',

    'SET FMTONLY OFF; exec distribution..sp_replmonitorhelpsubscription

    @publisher = DBServer,

    @publication_type = 2,

    @publication=MyPublication') AS a;

  • RE: An INSERT EXEC statement cannot be nested error

    Did you find an answer to this yet? I'm doing something very similar. What I've found out so far is that the proc sp_replmonitorhelpsubscription has an INSERT-EXEC in...

Viewing 2 posts - 1 through 2 (of 2 total)