Can we call SP inside a query?
Answers were Sorted based on User's Feedback
Answer / sachin
We can't call sp inside query insted we can call Function
inside query,infact that is the major difference between
the SP and Function
| Is This Answer Correct ? | 45 Yes | 0 No |
Answer / aagstya
No We can not call SP inside any query! We can call only
function in query.
This is the major difference in between SQL Function and
SQL Stored Procedure
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
Explain the use of keyword with encryption. Create a store procedure with encryption?
What are the main differences between #temp tables and @table variables and which one is preferred?
How do I find the sql server instance name?
Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?
How do I find the size of a sql server database?
What is a Lock and let me know Different types of locks?
What are the limitation of the Online Index Rebuild Operation?
What are the types of indexes?
Normalization and denormalization
How to update multiple rows with one update statement in ms sql server?
What do you mean by table and field in sql?
How do you check the performance of a query and how do you optimize it?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)