What are the differences between stored procedure and
functions in SQL Server 2000?

Answer Posted / jitendra

>Procedure may return none or more values.
->Function must always return one value either a scalar value or a table.
>Procedure allow modular programming.
>Function can be used in a select statement where as procedure can't.
>procedure can input and output parameter but Function takes only input parameter.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define indexes?

693


What are sp_configure commands and set commands?

638


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

614


What is it unwise to create wide clustered index keys?

669


What is join query?

589






What are the different index configurations a table can have?

615


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

1637


How to divide query output into multiple groups with the group by clause in ms sql server?

660


How many databases can we create in a single server?

193


What is hot add cpu in sql server 2008?

605


How to set the current database in ms sql server?

601


How to insert stored procedure result into temporary table?

672


What are the export options of ssrs?

134


explain how to create a new schema in a database? : Sql server database administration

689


How do you rebuild an identity column?

632