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

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 ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why it is recommended to avoid referencing a floating point column in the where clause?

953


Why would you use sql agent?

1254


What is temporary stored procedure?

934


Why truncate is ddl command?

1052


What is 4nf in normalization form?

1013


what is a live lock? : Sql server database administration

947


How do you trace the traffic hitting a sql server?

1132


What are the authentication modes in sql server? How can it be changed?

1114


How do I find my localdb version?

975


What are parameterized reports? What are cascading parameters in ssrs reports?

156


Why union all is faster than union?

906


What is the difference between Triggers and Stored Procedure?

1089


Does a specific recovery model need to be used for a replicated database? : sql server replication

949


Why do we use non clustered index?

1067


Do you know the cursor optimization tips?

971