I understand after SQL Server 2012 SET FMTONLY will be deprecated. I've developed a sophisticated code generation system that analyzes the results of a stored procedure and generates C# code for repository, data contracts, and business library. I'm utilizing SET FMTONLY to analyze the resultset(s) of stored procedures to understand the datacontract the stored proc is producing. This contract gets generated into an interface and it's implementation. I'm able to take a stored procedure returning multiple recordsets and return the data as a data contract to client.
I cannot find a replacement for SET FMTONLY that analyzes all of the resultsets for a Stored proc. Does anyone have any insight on how I can retrieve the columns, data types, etc for each and every resultset for a stored proc?
Thanks for your help.