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

Differences between functions and stored procedures?

Answer Posted / paras

UDF
1. Must return a value – a single result set
2. Directly used in select, order by,where, from
3. UDF can’t use nondeterministic function Such as
getdate(), rand()
4. Can’t change server enviroment variables
5. Stops execution of T-SQL code when error occurs
6. Can’t use temp table in UDF

Stored Procedure
1. Can return value – multiple result set
2. Can’t use in select
3. Can use nondeterministic functions
4. Can change server enviroment variables
5. Stored procedure move to the next instruction if you used
proper error handling,
6. Can use temp table in SP

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the encryption mechanisms in sql server?

970


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

2043


What is subreport?

129


How to connect of datebase with sql express.?

1052


what are constraints? : Sql server database administration

984


You want your report to display a hyperlink that will take users to your intranet. How do you configure such a hyperlink?

304


Define self join in sql server joins?

902


Where the sql logs gets stored?

936


What are exact numeric data types in ms sql server?

994


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1006


What is onf in normalization form?

1001


What is key attribute?

873


Can you explain various data region available in ssrs with their use?

918


What is subquery explain with example?

1009


What is the fastest way to permanently delete a 1 million row table named customers?

1155