I am trying to insert the publication status into a temporary table as belowinsert into #pub_statusexec distribution..sp_replmonitorhelppublication @@SERVERNAME,'DATA_BASE'
but am getting the below errorMsg 8164, Level 16, State 1, Procedure sp_MSload_tmp_replication_status, Line 80An INSERT EXEC statement cannot be nested.
In SQL Server 2005, this issue is resolved by executing the statment before inserting into temp table like below exec distribution..sp_replmonitorhelppublication @@SERVERNAME,'DATA_BASE'insert into #pub_statusexec distribution..sp_replmonitorhelppublication @@SERVERNAME,'DATA_BASE'
But this work around is not helping in SQL server 2008.Please help in solving this ASAP.San...