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 |
|
mahesh_bote
Constraint Violating Yak Guru
298 Posts |
Posted - 2006-09-27 : 08:25:29
|
| can anybody tell, how to execute stored procedure within function?as functions can return table, how to return the resultset as table when we execute stored procedure through function?thanks in advance,Mahesh |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-09-27 : 08:29:09
|
| You can't.EXEC to run a SP is not allowed within a function.Peter LarssonHelsingborg, Sweden |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-09-27 : 10:45:27
|
you can't but you may be able to rewrite your SP as a function KH |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-09-27 : 12:22:50
|
| Why do you want to execute stored procedure from Function?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|