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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jan 4, 2012, 5:13 AM
As per my knowledge,you can not call sp from functions.
please refer.
http://searchsqlserver.techtarget.com/tip/Stored-procedures-vs-functions
Chintan RathodPosted Jan 1, 2012, 10:13 PM
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.