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 is #temp and @table variable in SQL server?

1024


What is the difference between mysql and sql server?

936


What are cursors stored procedures and triggers?

932


what is a transaction? : Sql server database administration

931


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

900


How to turn off warning messages during php execution?

981


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

1039


Write a program using SQL queries to find a unique entry in a table.

938


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

973


Tell me when is the update_statistics command used?

1015


Describe and explain about SQL native client?

1030


what is sql server? : Sql server database administration

923


Define union, union all, minus, intersect?

932


How to join two tables in a single query in ms sql server?

939


what is create database syntax? : Sql server database administration

1045