试图将存储过程的输出写入到一个临时表时,我得到错误信息插入输出到一个临时表
消息208,级别16,状态0,4号线
无效的对象名称'#tblTemp'。
我的查询是这样的:
DECLARE @group_name varchar(250)
SET @group_name = 'somevalue'
INSERT INTO #tblTemp EXEC mySchema.sp_MyStoredProc @group_name OUTPUT
SELECT *
FROM #tblTemp
DROP TABLE #tblTemp
这里有什么问题?
感谢您的帮助!
FYI,试图用[链接](http://stackoverflow.com/questions/504431/t-sql-how-to-return-a-table-from-a-storedproc-in -another-stored-proc) – DaFunkyAlex 2013-02-19 13:43:52