sanjdhiman
Programmer
Hi can I do this in SQL SERVER 2005
INSERT INTO LocalServer.LocalDatabase.dbo.#Temp
EXEC REMOTESERVER.RemoteDatabase.dbo.storedprocedure_test
The stored proc when ran like above never completes but if I just run the stored proc like below
EXEC REMOTESERVER.RemoteDatabase.dbo.storedprocedure_test
It takes 5 seconds to complete which is correct.
Why does it never complete?
Thanks for your help on this
Its a WEIRD one
Note:Cannot use OPEN QUERY as this stored procedure takes parameters.
INSERT INTO LocalServer.LocalDatabase.dbo.#Temp
EXEC REMOTESERVER.RemoteDatabase.dbo.storedprocedure_test
The stored proc when ran like above never completes but if I just run the stored proc like below
EXEC REMOTESERVER.RemoteDatabase.dbo.storedprocedure_test
It takes 5 seconds to complete which is correct.
Why does it never complete?
Thanks for your help on this
Its a WEIRD one
Note:Cannot use OPEN QUERY as this stored procedure takes parameters.