Hi ,
How to call a sproc in user defined function in sql server 2008..
my sproc is also creating temp table inside it , so is it possible call this sproc in user defined function..
I googled but did not get.
Thanks in Advance.
How to call a UDP sproc in function using sql server 2008
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Chintan RathodRank #516 · 4.8K reputationPosted Jan 1, 2012, 5:13 PM EST
Truly saying, this 'limitation' can be bypassed using for example OPENQUERY. For more information, see:
http://msdn.microsoft.com/en-us/library/aa175782%28v=sql.80%29.aspx
Thank You.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 4, 2012, 12:13 AM EST
As per my knowledge,you can not call sp from functions.
please refer.
http://searchsqlserver.techtarget.com/tip/Stored-procedures-vs-functions