- Stored procedure cannot be executed using SQL Select command whereas Function (UDF) can be executed using SQL Select command. Stored Procedure can be executed using execute command i.e EXEC or EXECUTE
- Stored Procedure can return zero to n values whereas Function can return one value that is mandatory
- Stored Procedure can have input and output parameters whereas Function can have only input parameters.
- Stored Procedure can call functions whereas Function cannot call stored procedures.
- Stored Procedure exception handling can be done by try-catch block whereas Function exception handling cannot be done by try-catch block.
- Stored Procedure can't return a table variable although it can create a table while Function returns table variables.
- Stored Procedure can change the server environment or your operating system environment, while Function can change the server environment or your operating system environment
Difference between stored procedure and function
Stored Procedure vs Function
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Answer : WCF belongs to System.ServiceModel
-
Different types of assemblies are : Static and Dynamic assemblies Private and Shared assemblies Single file and Multiple file assemblies ...
-
Authorization is used to determine whether user has access to resource or not. There are two ways to authorize a resource : File authoriza...
-
Operation behaviour are scoped at Operation level. It is used for transaction flow , serialization , parameter handling.
-
Different type of method parameters in C# are : Value Parameter Reference Parameter Output Parameter
-
Abstract class has following features : cannot be instantiated contain abstact methods and properties cannot modify abstract class with s...
-
OOPs concepts that C# supports are : Abstraction : is a process that involves identifying the crucial behavior of an object and eliminatin...
-
Characteristics of well designed normalized database are : Table should have identifier Table should store data for single type of entity...
-
There are five types of contracts : Service Contract Operation Contract Data Contract Message Contract Fault Contract Please refer be...
No comments:
Post a Comment