SQL Server Store Procedure returning data from a temp table or a table variable to Access

  • Thread starter Thread starter anasser
  • Start date Start date
A

anasser

I am having a problem getting data from a store procedure on an sql
server from a temp table. I have to return the data from a table
created within the store procedue at run time due to some joins and
manipulation of the data at run time. when my pass-through query calls
this store procedure, I cannot retrieve the data from the temp table.
Is there a way to do this?

Thanks, and I appretiate any ideas and approaches...
 
Well, that depends on what you are already doing. Just make sure you are
creating a temp table available to the consecuent pass-through query.
Because you can declare (create) a temp table with local access (existing
only during the SP which created it) with the # sign and a temp table with
global access (until you delete it) with the ## sign.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top