2 thoughts on “Getting Return Metadata from Stored Procedures

  1. I’ve always wanted to know how that worked! But I can’t say that it works ‘without flaw’. We have a handful of crazy stored procedures at work that confuse LinqToSQL. For example, if you call another stored procedure from within your stored procedure (using exec) then it doesnt know what columns get returned anymore and doesnt return any.

  2. Set fmtonly on does work for most stored procedures. However another situtaion in which it does not work correctly is if your output is based on temporary tables defined in the stored procedure.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>