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 procedure and function.

Answer Posted / saraswathi muthuraman

Function :

1) Must return a single value. Only one value can be return
from a function.

2) Can be called from a sql(insert,update,delete) or
assignment st.U can't execute the function directly.

3) Can have DML,DDL,TLC inside function. But those function
can not be called from a sql.

Procedure :

1) Procedure can return multiple values.Procedure is
optional to return a value.

2) Can be executed directly and u can't called procedure
from sql.

3)Can have DML,DDL,TLC inside Procedure.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find the query plan in sql server?

916


Sql server reporting services vs. Crystal reports.

122


what are the types of indexes? : Sql server database administration

1068


What are a database and a data warehouse?

975


If a stored procedure is taking a table data type, how it looks?

6366


What is the sql server agent?

1043


Would you store your query in a ssrs report or a database server? State the reason why?

150


How to use the inserted and deleted pseudo tables?

918


What is primary key and example?

902


What is compound operators?

982


What is the difference between the 2 operating modes of database mirroring?

1063


Explain for xml explicit mode?

921


Explain what is the use of custom fields in report?

878


Can the query output be sorted by multiple columns in ms sql server?

941


What are “phantom rows”?

1622