Can store procedure call by user define function in SQL
server?
Answer Posted / samba shiva reddy . m
no we can not call as User defined function.
1.Stored procedures are pree compiled and functions are not pree compiled it will execute at run time.
2.Functions cannot affect the state of the database which means we cannot perform insert,delete,update and create operations on the database.
Stored Procedures can affect the state of the database by using insert,delete,update and create operations.
3.Procedure can return zero or n values whereas function can return one value which is mandatory.
4.Procedures can have input,output parameters for it whereas functions can have only input parameters.
5.Functions can be called from procedures and in select statement and whereas procedures cannot be called from function or select statement.
6.A Function returns 1 value only. Procedure can return
multiple values (max 1024).
7. Stored procedure returns always integer value by default
zero. Whereas function returns type could be scalar or
table or table values.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How you trouble shoot when any job fails
What are the advantages of sql stored procedure?
How does recursive cte works in sql server?
How to filter records of table in SQL SERVER?
Explain contrast amongst grouped and non-bunched records?
What is the difference in accessing db between sql server vs sql azure?
What are the different types of collation sensitivity in sql server?
What is log cache in sql server?
What is a rownum?
which table keeps the locking information? : Sql server administration
Which tcp/ip port does the sql server run on? How can it be changed?
How to optimize stored procedures in sql server?
Define indexes?
How can I create a report based on a query? : sql server management studio
What is built-in/administrator?