This code inserts the results of a stored procedure into a table. eg sp_configure etc.
CREATE TABLE #toto (v1 int, v2 int, v3 char(4), status char(6))
INSERT #toto (v1, v2, v3, status) EXEC dbo.sp_fulubulu(sp_param1)
SELECT * FROM #toto
DROP TABLE #toto
Is it possible to modify the code to include the parameter in the table?
CREATE TABLE #toto (v1 int, v2 int, v3 char(4), status char(6))
INSERT #toto (v1, v2, v3, status, parameter) EXEC dbo.sp_fulubulu(sp_param1), sp_param1
SELECT * FROM #toto
DROP TABLE #toto
Note, the parameter is not static.