Difference between Function and Stored Procedure?

Answer Posted / deepak

1)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.

2)Functions are basically used to compute values
stored procedures are basically used to process the task.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are candidate key, alternate key and composite key? : Sql server database administration

495


What is the recommended total size of your memory optimized tables?

527


Explain difference between cross join and full outer join?

561


What is the difference between a function and a trigger?

575


What is side by side migration in sql server?

538






how to define testing of network layers? : Sql server database administration

494


What is the maximum number of index per table?

566


Why do we partition data?

618


How many triggers you can have on a table?

533


What is the difference between primary key and unique constraints?

514


What is 4nf in normalization form?

570


What is report snapshot in ssrs?

166


What is simple indexing method?

577


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

494


What is difference between foreign key and unique key?

550