all groups > sql server new users > june 2007 >
You're in the

sql server new users

group:

exec sp inside a sp?



exec sp inside a sp? SAC
6/25/2007 10:08:25 AM
sql server new users: I'm using 2000

Can I execute a stored procedure within another stored procedure.

I tried exec sp_name buy got an error. The sp I'm attempting to run uses
bcp.

Any ideas?

Thanks.

Re: exec sp inside a sp? Adam Machanic
6/25/2007 11:12:56 AM
Yes, you can. What error did you get? Can you post your code?


--

Adam Machanic
SQL Server MVP

Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220



[quoted text, click to view]
Re: exec sp inside a sp? SAC
6/25/2007 12:25:33 PM
Thanks for pointing this out.

I've tried running the sp by itself and IT is producing the error. So, once
I fix that, then it should work within another sp.

Thanks for your help.

[quoted text, click to view]

AddThis Social Bookmark Button