开发者

Call sp within another sp

I have an sp named 'FolderSttructure'.It returns t开发者_C百科he following result -

FolderID

1 2 3 4

I have to call the above sp 'FolderSttructure' inside another sp named 'SearchFolder' and insert the result of first sp in to a temperory table.

Is it possible?

If yes how can we do that?


Yse, you can do it like this:

CREATE TABLE #ATempTable
(
FolderID INTEGER
)

INSERT #ATempTable
EXECUTE FolderSttructure
...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜