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 the difference between Userdefined function and
stored procedure? Explain and give the example also

Answer Posted / ashwini

1. User defined functions can be used in select statements.
Procedures can not be used.

2. Functions must return some value. Procedures do not
always return the value.

3. Functions will take only input parameters. Procedures
can take input as well as output parameters.

4. Not all types of user-defined functions use
INSERT,UPDATE,DELETE statements(Only multi-statement table
valued functions can use). All procedures can use these
statements.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the properties of sub-query in sql server?

995


What are system databases into sql server (2005/2008)?

985


What is nested transaction?

1085


Can a trigger be created on a view?

936


Explain trigger and its types?

1049


Why truncate is ddl?

1064


How check triggers in sql server?

964


How to connect of datebase with sql express.?

1085


How to read data in a table with "select" statements?

950


What are horizontal and vertical scaling?

170


on line cluster can we make if yes tell me the procedure

2005


What is sql server profiler trace data file?

1091


what are different types of raid configurations? : Sql server database administration

1033


What are types of scd? : sql server analysis services, ssas

996


How to create view in stored procedure sql server?

1001