Action vs Retrieval stored procedures

Posts   
 
    
ftuttle
User
Posts: 40
Joined: 10-Dec-2006
# Posted on: 07-Dec-2008 21:31:13   

I have a stored procedure that is returning a record (this is all that is in the SP):

SET NOCOUNT ON;
EXEC('Select * from  ' + @TableName + ' FOR XML AUTO, XMLSCHEMA')

The SP isshowing up in LLBL as an Action stored procedure and thus the generated code only expects an int in return.

How can I make this a Retrieval SP?

I tried setting NOCOUNT OFF but that did not work.

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Dec-2008 05:24:41   
David Elizondo | LLBLGen Support Team
ftuttle
User
Posts: 40
Joined: 10-Dec-2006
# Posted on: 08-Dec-2008 22:07:02   

That was perfect.

Thankyou!