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

Define normalisation?

1155


How we create SQL Server 2005 Reporting Services ? Give me Sample

2043


What is the maximum size of a dimension? : sql server analysis services, ssas

1086


Why use “pivot” in sql server?

1176


Which sql server is best?

1047


How to disable stored procedure sql server?

1661


What is an inner join?

1040


Explain few of the new features of sql server 2008 management studio

977


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

1032


Who is the owner of a schema in ms sql server?

1116


Can group by and orderby be used together?

1069


How to check parameter value in stored procedure sql server?

1027


Can we write a distributed query and get some data which is located on other server and oracle database?

1277


Is foreign key unique?

1047


Do you know the capabilities of cursors?

1217