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 to insert a table?

923


Do you think BCNF is better than 2NF & 3NF? Why?

1254


Do you know what is xpath?

1063


How to fetch the next row from a cursor with a "fetch" statement?

1054


Explain what are partitioned views and distributed partitioned views?

928


Explain what is the main purpose of having conversation group?

913


What is the default order of an order by clause?

972


Describe in brief system database.

998


How to specify the collation for a character data type in ms sql server?

1005


What is a filestream?

971


After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas

936


If a table does not have a unique index, can a cursor be opened on it?

897


what is a schema in sql server 2005? : Sql server database administration

999


What is the difference between rank and dense_rank?

1057


How raid can influence database performance?

1009