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
 General SQL Server Forums
 New to SQL Server Programming
 Is it possible

Author  Topic 

boreddy
Posting Yak Master

172 Posts

Posted - 2008-08-27 : 01:03:28
I have a Store Procedure which gives one select rows and i hava function. What my question is, I want to execute this Stored Procedure in a function. How can i achieve this????

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-27 : 01:07:54
why do you want to use store procedure inside function? Whats the stored procedure doing for you? can you give some idea please?
Go to Top of Page

sunil
Constraint Violating Yak Guru

282 Posts

Posted - 2008-08-27 : 02:03:40
As far I have read about UDF,Only functions and extended stored procedures can be executed from within a function.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-27 : 02:17:16
quote:
Originally posted by boreddy

I have a Store Procedure which gives one select rows and i hava function. What my question is, I want to execute this Stored Procedure in a function. How can i achieve this????




Use SELECT query directly in a function

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -