June 21, 2005 at 2:09 pm
June 22, 2005 at 6:42 am
Have you tried to make a SP on the Linked Server and execute it OVER the linked server?
EXEC LinkedServer.Database.Owner.mySPThatReturnsTheResultOfMyDBCC
//Hanslindgren
June 22, 2005 at 11:58 am
Unfortunately, INSERT INTO <table_name> EXEC <sp_name> will not work because SQL Server generates an error: An INSERT EXEC statement cannot be nested. I am capturing DBCC SHOWFILESTATS as INSERT INTO <table_name> EXEC('DBCC SHOWFILESTATS') inside stored procedure. I suppose there is no easy work around, is there?
Thanks,
Igor
June 23, 2005 at 2:41 am
Does this SP actually exist on the remote server or on the local server?
June 23, 2005 at 11:59 am
It does exist on remote server. I have found a workaround. I made stored procedure on remote server dump data into local tables.My main procedure is calling proc on remote server and the get data from tables on remote server using INSERT INTO ... SELECT FROM.
June 24, 2005 at 2:20 am
I am abit suspicious that it didn't work in the other way but whatever works is a solution
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply