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

Is it possible to update the views? If yes, how, if not, why?

1018


What is the difference between a unique key and primary key?

940


Explain microsoft sql server functions?

1102


Difference between Sql server reporting services and Crystal reports?

168


please differentiate between delete and truncate?

987


Describe different Processing Modes offered by SSRS?

248


How to test values returned by a subquery with the in operator?

1188


How to find index size for each index on table?

997


Can you explain important index characteristics?

985


What is normalization according to you and explain its different levels?

942


Explain Capacity planning to create a database? and how to monitor it?

4198


What are ddl triggers and types of ddl trigger?

1032


Define the one-to-one relationship while designing tables.

898


Define Business Edition in SQL Azure?

100


Give me any three differences between Truncate and Delete.

1095