Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing EXEC statement as a parameter to another procedure

Status
Not open for further replies.

LinsLo

Programmer
Jul 27, 2004
11
US
Is is possible to pass an execute procedure statement into a procedure call as an incoming parameter?

For example:
__________
EXEC Proc_MyProc
@ID,
@name,
EXEC Proc_getContent @ID,
@address

________________

Let me know your thoughts.

Thanks!
 
No. You need to set a variable from the exec then pass that.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top