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

What is difference between stored procedure & function?

Answer Posted / somu kattikar

Functions
----------
1) can be used with Select statement
2) Not returning output parameter but returns Table
variables
3) You can join UDF
4) Cannot be used to change server configuration
5) Cannot be used with XML FOR clause
6) Cannot have transaction within function

Stored Procedure
-----------------
1) have to use EXEC or EXECUTE
2) return output parameter
3) can create table but won’t return Table Variables
4) you can not join SP
5) can be used to change server configuration
6) can be used with XML FOR Clause
7) can have transaction within SP

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1131


How do I connect to sql server database?

1063


What is the purpose of sql profiler in sql server?

1065


What is the osql utility?

1033


What are the commands used in DCL?

1080


Explain features and concepts of analysis services?

1018


What are clustered and non-clustered index?

1049


Write a query for primary key constraint with identity key word?

1077


How to find the version of sql server? : sql server database administration

1154


Explain tables in SQL Azure?

122


What is isnull() operator?

1090


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

1081


Differentiate between sql temp table vs table variable?

927


How do users use Report Builder with SQL Server data sources?

164


Does sql server 2016 have ssms?

1004