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...


diffrence between function and procedure

Answers were Sorted based on User's Feedback



diffrence between function and procedure..

Answer / srinivas k

Function should always return a value, where as Store Proc
may or may not return values.
Functions can be part of DML statements, where SP cannot be.
SP are precompiled and functions are not.

Is This Answer Correct ?    5 Yes 0 No

diffrence between function and procedure..

Answer / sakthi

Inside function we cannot able to insert, udate or delete
any record but in procedure we can use it. inside function
we cannot able to call any other functions or procedure but
inside procedure we can call other procedure and functions.
these are the major differences

Is This Answer Correct ?    3 Yes 0 No

diffrence between function and procedure..

Answer / pradeep aryan

1. Function can returtn single value but proc san return
multiple values

2. Proc can call a function but function not.

3. function can call in select statement also and acn perform
action also but proc not.

Is This Answer Correct ?    3 Yes 0 No

diffrence between function and procedure..

Answer / jayanth

Functions always returns a value where as sp performs bath execution
functions can be used along with select statement and where clause where as functions cannot be used with update insert delete statements in which sp cannot be used with select and DML events
functions cannot be used with try catch block where as sp can use try catch block
functions are of two types system functions and user defined functions where as sp's are four types mostly
sp with parameters
sp without parameters
sp with out parameters
sp with return values

Is This Answer Correct ?    0 Yes 0 No

diffrence between function and procedure..

Answer / rakesh

function always return value, and procedure not Return the value.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SQL Server Interview Questions

How to move database physical files in ms sql server?

0 Answers  


What according to you is the difference between mysql and sql server performance?

0 Answers  


How to create logins using windows Authentication mode?

2 Answers  


How much is a sql server license?

0 Answers  


Which is the latest version of sql server and when it is released?

0 Answers  


what is cluster and nin-cluster index?

4 Answers  


What happens when converting big values to numeric data types?

0 Answers  


What are the differences between stored procedure and functions in SQL Server 2000?

25 Answers   College School Exams Tests, HCL, Infosys, TCS,


Can we linked SharePoint to a SQL database?

0 Answers   Sans Pareil IT Services,


how to find out the repeated value from table using groupby function?

4 Answers  


Define full outer join?

0 Answers  


How can you hide the sql server instances?

0 Answers  


Categories