Can we call SP inside a query?

Answer Posted / radhakrishnan

No, we can't call sp in query.

Eg:this query not working properly

select empno,empname,exec spname
from tablename.

but function we can call with in a query.

Eg:

select empno,empname,upper(empaddress)
from emptable

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create sub reports?

194


What is after dml trigger?

588


What is the need for group functions in sql?

574


How many columns can exist together per table?

717


How to connect a database with sql express.?

579






Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

607


Do you know what is user defined datatypes and when you should go for them?

508


Explain indexed views?

566


What are the advantages to use stored procedures?

580


Explain view in sql server?

635


Do you know the cursor types?

626


What is self contained sub query?

571


Explain a join?

627


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1229


What is the difference between NOROW and LOCKROW?

2251