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
...
精彩评论