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

What are trace files?

958


Does transparent data encryption provide encryption when transmitting data across the network?

1047


Please differentiate between a local and a global temporary table?

1007


Do you know what are acid properties?

1078


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1916


Can group by be used without aggregate functions?

922


Explain trigger and its types?

1065


Can we create clustered index on composite key?

1084


What is msdb database? : SQL Server Architecture

1133


How secure is sql server database?

1007


Explain the disadvantages of cursors?

1141


What is row_number function?

1007


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

1004


Explain SSRS Architecture?

195


Give a example to search fr a string in all stored procedure in sql server.

986