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

Answer Posted / vijayabhaskarreddy

there are 3 main differences between sp and function.
1 sp takes input,output parameters, function takes only
input parameters.
2 temparary variables required to store return values of
sp. in functions temparary variables will be optinale.
3 sp can not be called directly into DML statements ,
functions can be called directly into DML statements.

Is This Answer Correct ?    64 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auditing in sql server?

509


Write the syntax for stuff function in an sql server?

538


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

486


Explain the use of containers in ssis and also their types?

534


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

570






What is difference between count (*) and count 1?

520


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

605


Define msdb database?

603


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

525


Explain contrast amongst grouped and non-bunched records?

524


Explain logical operators in sql server?

576


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

588


what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration

501


What is difference between primary key and foreign key?

487


What is transactional replication?

565