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
what's sql server? : Sql server database administration
How to receive output values from stored procedures?
How do I make a resultset scrollable?
Can group functions be mixed with non-group selection fields in ms sql server?
Tell me the use of keyword with encryption. Create a store procedure with encryption?
What is a coalesce function?
Tell me what do you mean by an execution plan? Why is it used? How would you view it?
Differentiate between a primary key and a unique key.
List some case manipulation functions in sql?
What is an sql server agent?
what is the different types of backups available in sql server? : Sql server database administration
what is the system function to get the current user's user id? : Sql server database administration
Is natural join and equi join same?
Which language is supported by sql server?
let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration