I am setting up a SQL Server database and have been given access to call a stored procedure in a remote server to help populate some tables.
I created a linked server as SSIS in Visual Studio 2008 and SQL Server Management Studio 2008 seem to not like EXEC
statements in their SSIS packages for remote servers.
So having successfully set up linked server I try to execute my stored procedure with the following
Select * from OPENQUERY(LinkedServerName, 'exec storedProc paramValue')
But get the following error
Msg 208, Level 16, State 1, Procedure storedProc, Line 49
Invalid object name '#tmp_bl'.
I have tried to Select
my Linked server but no luck.
Does anyone know what the exec statement should be so I can put it into a local SSIS package?