I’m trying to build a designer in .NET, and would like to be able to retrieve the columns and column types of the output from a stored procedure without calling it so the designer can be used to map the output. Is this possible? I’m even willing to use an unmanaged API if necessary.
Share
I believe what you’re looking for is
SET FMTONLY(Documentation).This allows you to execute a SP (or select statement) and see what columns would be returned without actually executing the query.