Check your full code of SP, may be somewhere
there is a RETURN statement, so - the SP will not return any data (pay
attention on IF SomeContition IS TRUE RETURN):
CREATE PROCEDURE [dbo].[GetMetaData]
@@Assembly Sql_Variant = NULL,
@@Namespace Varchar(30) = NULL,
@@ParameterName Varchar(40) = NULL,
@@Standard Bit = 0,
@@Timestamp DateTime = NULL
AS
SET NOCOUNT ON
DECLARE @ResultTable TABLE (AssemblyId Int, Namespace Varchar(30), ParameterName Varchar(40), Value Varchar(100))
-- Does loads of stuff and then inserts into @ResultTable table...
IF SomeContition IS TRUE RETURN
SET NOCOUNT OFF
-- Return the result
SELECT AssemblyId, Namespace, ParameterName, [Value]
FROM @ResultTable
RETURN