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 are the differences between stored procedure and
functions in SQL Server 2000?

Answer Posted / pavan pareta

1) functions are used for computations where as procedures
can be used for performing business logic
2) functions MUST return a value, procedures need not be.
3) you can have DML(insert, update, delete) statements in a
function. But, you cannot call such a function in a SQL
query..eg: suppose, if u have a function that is updating a
table.. you can't call that function in any sql query.-
select myFunction(field) from sometable; will throw error.
4) function parameters are always IN, no OUT is possible

Is This Answer Correct ?    145 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Normalization and DE normalization

1159


What is a group function explain with an example?

1034


What is a livelock?

1015


How can you find out how many rows returned in a cursor?

1082


What is the purpose of a table?

993


What are the triggers in sql?

1166


What is user-defined multi-statement table-valued function?

1120


How do I edit a stored procedure in sql server?

970


What is store procedure?

1112


What do you understand by the denormalisation?

1018


How to change the password of a login name in ms sql server?

1057


How do I port a number to sql server?

1095


What is in place upgrade in sql server?

1093


How will you make an attribute not process? : sql server analysis services, ssas

1157


What is the impact on other user sessions when creating indexes?

963