Using Openquery on stored procedures

  • We need to call a stored procedure through a SQL statement (i.e. SELECT * FROM OPENQUERY(SERVER, 'EXEC SP_CALL')) and are trying to resolve some issues.  We are getting errors calling the stored procedure if the stored procedure uses temp tables (#Table) or table variables.  We tried using SET FMTONLY OFF in the call without success.  We have the server option set to allow Data Access.  What other settings, syntax, etc is needed to get this to work?

  • Hi Chase..

    I've had success using OPENROWSET to do this work.  Check out this blog entry.

    Hope this helps..


    Take care..

    - Ward Pond
    blogs.technet.com/wardpond

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

You must be logged in to reply to this topic. Login to reply