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 Userdefined function and
stored procedure? Explain and give the example also

Answer Posted / selvaraj.v

1.A stored procedure is a precompiled collection of
Transact-SQL statements stored under a name and processed
as a unit that you can call from within another Transact-
SQL statement or from the client applications.
2.Stored procedure performs an action.
3.A collection of SQL statements often combined with
Control-of-flow statements.

1.User Defined Functions are compact pieces of Transact SQL
code, which can accept parameters, and return either a
value, or a table. They are saved as individual work units,
and are created using standard SQL commands. Data
transformation and reference value retrieval are common
uses for functions.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps you can take to avoid “deadlocks”?

978


What is SQL Azure Data sync?

121


Write the syntax for stuff function in an sql server?

1030


Difference between group by clause and having clause in SQL?

972


What is store procedure? How do they work? When do you use?

944


What is a rollup clause?

968


What is dbcc? Give few examples.

1039


what is the system function to get current user's user id? : Sql server database administration

1005


How to loop through result set objects using mssql_fetch_array()?

1083


Explain forward - only cursors?

1072


Which is faster statement or preparedstatement?

946


What is sql server used for?

1053


What is normalization and denormalization in sql server?

1017


What is attribute relationships, why we need it? : sql server analysis services, ssas

968


How to disable triggers using "disable trigger"?

1057