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 are the differences between stored procedure and
functions in SQL Server 2000?

Answer Posted / chauhan rakesh botad

1>Procedure can return zero or n values whereas function can
return one value which is mandatory.

2>Procedures can have input,output parameters for it whereas
functions can have only input parameters.

3>Procedure allow select as well as DML statement in it
whereas function allow only select statement in it.

4>Functions can be called from procedure whereas procedures
cannot be called from function.

5>Exception can be handled by try-catch block in a procedure
whereas try-catch block cannot be used in a function.

6>We can go for transaction management in procedure whereas
we can't go in function.

7>Procedures can not be utilized in a select statement
whereas function can be embedded in a select statement.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is raid? : Sql server database administration

1041


How to create a simple stored procedure in ms sql server?

1028


What is the most common type of join?

989


what are different types of backups available in sql server? : Sql server database administration

938


What are the disadvantages of indexes?

1090


What is it unwise to create wide clustered index keys?

1007


what is the system function to get the current user's user id? : Sql server database administration

1025


Explain datetime2 data type in sal server 2008?

912


optimization techinques

2680


How to provide default values to function parameters?

1140


What is report server project?

147


What is the use of “join” in sql server?

1095


Can you explain about buffer cash and log cache in sql server?

948


How to create a user to access a database in ms sql server using "create user" statements?

954


How to create new tables with "create table" statements in ms sql server?

1066