Hello, I need to do the following, But I receive an error:
CREATE PROCEDURE dbo.EJEMPLO_A AS
BEGIN
SELECT TOP 10 NAME, ID FROM SYSCOLUMNS
END
-- and Later use the one above... like this...
CREATE PROCEDURE dbo.EJEMPLO_B AS
BEGIN
DECLARE @temp_lista TABLE (NOMBRE VARCHAR(500),
IDENT NUMERIC(5))
INSERT INTO @temp_lista execute dbo.EJEMPLO_JULIAN
END
Pd. I just have to capture the dbo.EJEMPLO_A resulset... and I can't modify It