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 |
What is update locks?
how many layers of tcp/ip protocol combined of? : Sql server database administration
what are candidate key, alternate key and composite key? : Sql server database administration
Do you know sql server 2008 introduces automatic auditing?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
What is mean by candidate key?
What is difference between standardization and normalization?
What is the difference between cube operator and rollup operator? : SQL Server Architecture
statement (of account) Receive ID_receive Date_receive Amount_receive TO_receive From_receive Description_receive 1 2010/01/01 500 Bank Ahmed Payment from the account 2 2010/02/01 700 Bank Ahmed Payment from the account Payment ID_payment Date_payment Amount_payment From_payment To_payment Description_payment 1 2010/03/01 1000 Ahmed Sales Sale goods 2 2010/04/01 1500 Ahmed Sales Sale goods How can crate Stored Procedures for the statement (of account) from these tables? I want statement (of account) like this: (in sql 2005) ID_ name description debit account credit account balance
Tell about MOM Tool(Microsoft Operator Manager)?
What languages bi uses to achieve the goal?
Find first and last day of current month in sql server