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 to maintain a fill factor in existing indexes?

1047


Tell me what are cursors and when they are useful?

993


Why I can not enter 0.001 second in date and time literals in ms sql server?

1104


What is dbcc updateusage?

1252


Does sql server 2000 full-text search support clustering?

907


What is a virtual table in sql?

1034


How to create an identity column?

1297


What is primary key and example?

992


Does group by or order by come first?

996


What are the Advantages of using CTE in sql server?

1164


Why it is recommended to avoid referencing a floating point column in the where clause?

1007


After removing a table from database, what other related objects have to be dropped explicitly?

1096


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

1034


Explain the truncate command? : SQL Server Architecture

1226


Which sql server is best?

1046