Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between Function and Procedure-in general?

Answer Posted / dharmendra nonia

Function and Stored Procedure both are precompiled objects
in databases but there is some difference between UDFs and
Stored Procedure such as--
1)Function Must be return at least one value but stored
procedure may or may not.
2)We can use Function for only data manipulation but stored
Procedure is used to Manipulation as well as Modification
of Data on tables.
3)We can't use DML statements inside Function but In stored
Procedure, we can use DML statements.
4)In stored Procedure, we can pass INPUT and OUTPUT
parameter but Function accept only input parameter and
return a value.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by a stored procedure?

1088


What does the not null constraint do?

1086


What is the difference between cube operator and rollup operator? : SQL Server Architecture

1122


Write query to return all rows sql?

1053


What will be query used to get the list of triggers in a database?

1002


what changed between the previous version of sql server and the current version? : Sql server database administration

1007


Do you know what is lock escalation?

1011


What is the difference between char, varchar and nvarchar?

1022


Can we linked SharePoint to a SQL database?

1028


What is a trace frag?

1085


How many types of objects are there?

1008


What are “phantom rows”?

1657


Can you explain various data region available in ssrs with their use?

976


What is use of except clause?

1092


Do you know what are pages and extents? : SQL Server Architecture

995