what is the difference between procedure and function.

Answer Posted / hitesh

1.Procedure can call a function but Function cannot call
the function.
2.Procedure may or may not return the value but function
must return a scalar value.
3.Procedure can have any statements and function can have
only select like thing

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a collation in ms sql server?

542


Explain sub-query?

562


Write an SQL query to obtain the 2nd highest salary.

602


Why use view instead of a table?

511


Do you know the different ddl commands in sql?

585






How to recreate an existing index in ms sql server?

541


What is use of except clause?

617


Define candidate key, alternate key, and composite key.

530


What is a trigger? Why we need it?

527


How to perform key word search in tables?

527


What is right outer join in sql server joins?

679


What are the dis_advantages of stored procedures, triggers, indexes?

1681


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

109


How to change a login name in ms sql server?

554


Why transaction is important?

557