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.
| Author |
Topic |
|
1sabine8
Posting Yak Master
130 Posts |
Posted - 2007-12-11 : 05:31:07
|
| Hi, i wanna know if we can call a stored procedure from another one. If yes, what's the syntax?Thanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-12-11 : 05:36:45
|
| Create procedure procnameas.....EXEC other_procBut it depends on what other procedure is doingMadhivananFailing to plan is Planning to fail |
 |
|
|
kiruthika
Yak Posting Veteran
67 Posts |
Posted - 2007-12-11 : 06:23:20
|
quote: Originally posted by 1sabine8 Hi, i wanna know if we can call a stored procedure from another one. If yes, what's the syntax?Thanks
Hi!alter proc mypro @custname varchar(20)as begin beginselect cust_name,cust_id from customer where cust_name like @custname end--exec sp_help exprocexec exproc 9000endhere mypro and exproc are procedures.You can execute system stored procedures also.(Uncomment the line and execute sp_help line also) |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|
|