Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Calling Stored Procedure...

Author  Topic 

gundavarapu
Starting Member

8 Posts

Posted - 2003-08-04 : 01:34:07
Hi,

How can we invoke a Stored Proc from another stored proc.

like..

Alter Procedure sp1

begin
-- i want to call the sp2 here
-- is it like
-- sp2 "1","2"
-- or something different
end

Thanks

Regards,
Sidhu

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2003-08-04 : 02:06:05
Use "Exec"

I.E.

BEGIN

Exec sp2 1, 2

END



Damian
Go to Top of Page

gundavarapu
Starting Member

8 Posts

Posted - 2003-08-04 : 02:32:33
quote:
Originally posted by Merkin

Use "Exec"

I.E.

BEGIN

Exec sp2 1, 2

END



Damian



Thanks, it was such simple :)

Regards,
Sidhu
Go to Top of Page
   

- Advertisement -