Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
why cant we call stored procedure from select statement
Posted
Comments
syed shanu 28-Nov-14 1:58am    
First can you tell why you want to call stored procedure from select query
Vivek S Kale 28-Nov-14 1:59am    
i am just curious

You can do that but there is different way to do that

check this



how-to-use-openrowset-to-execute-a-stored-procedure-with-parameters[^]

the-openrowset-trick-accessing-stored-procedure-output-in-a-select-statement.aspx[^]

but not a good option for performance
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900