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

Can we insert data into a view?

1191


What are the restraints imposed on the table design by a merge replication?

1084


How to get nth highest salary from employee table.

1206


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

1065


What is read uncmmited?

1111


Tell me what is the significance of null value and why should we avoid permitting null values?

1038


How to create stored procedures with parameters in ms sql server?

1150


What is data modeling and Reterminal integrity?

2006


What is sql server management studio? : sql server management studio

1118


Explain how would you store your query in an SSRS report or a Database server?

133


How to call a function from a stored procedure in SQL Server ?

1076


How to install sql server 2005 express edition?

1166


What is the cartesian product of the table?

1001


How do I create a trace in sql server?

1085


Where is my database stored on the hard disk in ms sql server?

1106