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

List out the differences between global and local temp tables in sql server?

1061


Explain use of expression builder.

1020


What is the difference between local and global temporary tables?

1138


What happens if you delete a table that is used by a view?

990


What are the new features of sql server 2008 r2 reporting service?

209


What are the requirements to use odbc connections in php scripts?

1120


What is the purpose of self join?

975


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

954


which backup strategy you are following at ur company

2147


What is xml datatype?

1074


How do I trace a query in sql server?

952


What is the security principal at the database level that represents your session?

942


How do I create an extended event in sql server?

952


What does this statement do @@rowcount?

967


Write a sql query to sort on different column name according to the parameters passed in the function?

904