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 |
Say if we have a table that contains only a single column , say OrderID, which has IDENTITY attribute defined on it. So how can we insert data in this table. I am reframing my question, that how can we make the table to increment the column "OrderID" value several times???
We need to perform what steps in the following order to work with a cursor?
Can an entity have two primary keys?
Explain isolation levels that sql server supports?
Which databases are part of SQL server default installation? Explain the usage of each?
Hi, I Created 3 Tables Person(PersID[prkey],Name,Email,Password), Project(ProjName,ProjID[prkey],ProjLeader,ProjManager) & ProjectInvolvement(EntryDate,ProjID[frkey],PersID[frkey],ProjDuration). For this how can i INSERT,UPDATE & DELETE Through PROCEDURE? Please Post the Answer for me. Desai.
How to set database to be single_user in ms sql server?
What do we need queues in sql service broker?
What do you understand by mirroring?
What is sql collation?
What is role playing dimension with two examples? : sql server analysis services, ssas
What types of integrity are enforced by a foreign-key constraint