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

What are the advantages of user-defined functions over stored procedures in sql server?

1052


What is forward - only cursors / read only cursor?

1099


Explain about Views?

1078


How to create a simple table to test triggers in ms sql server?

985


Explain what is the use of custom fields in report?

932


What is perspective, have you ever created perspective? : sql server analysis services, ssas

926


How to insert new line characters into strings?

999


What is the difference between mysql and mysqli?

1214


What are the fixed server level roles? : sql server security

1143


Explain what are the different index configurations a table can have?

1120


explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

908


How to get a list all databases on the sql server?

1109


What is sql server english query?

1140


What is the default value of an integer data type in sql server 2005?

959


What is the name of the system variable that returns the number of rows affected by a SQL statement?

1021