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...

Differnce between Stored procedure and user defined functions?

Answer Posted / ranjanimanuel

1.UDF can't use a nondeterministic functions such as Getdate
(),RAND() where as StoreProcedure cn use such a functions.
2.UDF must return a value or a single resultset . Store
Procedure can return a value or even multiple resultsets,
but doesn't have to
3. UDF can be used in anywhere sql statements like
where/having/Select sections where as store procedure
cannot be.
4.UDFs that return table can be treated as another rowset.
This can be used in JOINS with other table

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe datareader object of ado.net with example.

868


What provider ado.net use by default? Explain the role of data provider in ado.net?

918


What is an example of ordinal data?

1045


Which is faster datareader or dataadapter?

933


How to find the given query is optimised one or not?

915


Define table relations?

920


What are the namespaces used in ado.net for data access?

922


Give an example of a .net application which connects to microsoft access database using ado.net classes.

1075


List the 4 common ado.net namespaces?

1079


Explain the different row versions available in table?

974


What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?

1271


Why do we serialize data?

884


What is the difference between Optimistic and Pessimistic locking?

923


Explain the difference in record set and dataset?

874


Explain the overview of ado.net architecture?

938