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 / ashwini

1. User defined functions can be used in select statements.
Procedures can not be used.

2. Functions must return some value. Procedures do not
always return the value.

3. Functions will take only input parameters. Procedures
can take input as well as output parameters.

4. Not all types of user-defined functions use
INSERT,UPDATE,DELETE statements(Only multi-statement table
valued functions can use). All procedures can use these
statements.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to choose all records from the table?

1000


Do you know hot add cpu in sql server 2008?

901


How can you manage sql azure security?

101


What are the two modes of authentication in sql server?

982


Difference between LEN() and DATALENGTH() in sql server ?

1062


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

941


Explain what are magic tables in sql server?

948


How to encrypt data between dialogs?

1033


What is the process of normalization?

1058


is it important for a database administrator to understand the operating system and file access? : Sql server administration

979


What you can do to delete a table without the delete trigger firing?

920


What is the recommended total size of your memory optimized tables?

912


What are the differences between lost updates and uncommitted dependencies?

1015


Can you pass expressions to function parameters?

1034


What are wait types?

1021