Typed Dataset using storedprocedure that contains temporary tables

G

Guest

Hi all,

I have a stored procedure that returns me data joining 2 temporary tables in it.
I am trying to create a typed dataset using this stored procedure which doesn't allow me to do. If anybody has this problem or know about this, pls need help.

Thanks in advance
Sapna

User submitted from AEWNET (http://www.aewnet.com/)
 
D

David Browne

Hi all,

I have a stored procedure that returns me data joining 2 temporary tables
in it.
I am trying to create a typed dataset using this stored procedure which
doesn't allow me to do. If anybody has this problem or know about this,
pls need help.

When you use temporary tables in a stored procedure SqlServer cannot figure
out the what the row looks like that will be returned. Either build the
typed dataset by hand, or put a dummy table in your schema with the same
rowtype as your procedure returnes. Use the dummy table to build the Typed
DataSet in Visual Studio, but fill the table with a call to the stored
procedure.

David
 

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

Top