what is the difference between procedure and function.

Answer Posted / saurav kumar

1) Inside Stored procedure we can write functions but
inside function we can't write Stored procedures.

2) Stored proedure may or may not return a value but
function must return a value.

3) Stored Procedures can be called independently using exec
keyword ,Function are called using select statement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

574


Define a cross join?

587


What is difference between primary key and foreign key?

477


what are user defined datatypes and when you should go for them? : Sql server database administration

530


What is mean by candidate key?

531






List all the types of user-defined functions?

515


What is sql server profiler?

563


What functions can a view be used to performed?

611


What are built in functions?

570


What are the two authentication modes in sql server?

596


If any stored procedure is encrypted, then can we see its definition in activity monitor?

543


What is meant by dirty read?

550


What is report snapshot in ssrs?

160


Types of Authentications in Sql Server? How user gets authenticated through windows authentication?

559


What is SQL Azure Fabric?

92