sp_help sp_helptext 存储过程的返回结果导出到表


create table #temptable([text] text)

create table #temptableS([textSS] text, ID INT)

insert into #temptable([text]) exec sp_helptext 'CCC_updTAHeader'

insert into #temptableS([textSS],ID) SELECT [text],1 AS ID FROM #temptable


SELECT * FROM #temptableS

DROP TABLE #temptable
DROP TABLE #temptableS
原文地址:https://www.cnblogs.com/zhangchenliang/p/1993762.html