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

Answer Posted / sanjeev bhardwaj

Function:

Function must have a return type.
Function output can be set to the DMLstatement.
User Defined Functions (UDFs) can run an executable file
from SQL SELECT or an action query

Stored Procedure:

Stored Procedure may or may not have a return type.
Stored Procedure output can not st to any DML Statement.
Stored Procedure can run uder Execute command

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is "scheduled jobs" or "scheduled tasks"?

558


How to filter out duplications in the returning rows in ms sql server?

640


What is the command used to check locks in microsoft sql server?

547


What is default port number for sql server 2000?

603


Can we use having clause without group by?

556






What do you mean by acid?

580


What is the Disadvantage of indexed sequential file.

624


Tell me what do you understand by a view? What does the with check option clause for a view do?

647


How to create prepared statements using odbc_prepare()?

571


What is BCNF? How is it better than 2NF & 3NF?

597


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

528


What is a fill factor?

627


Write a SQL query to make a column as unique?

632


Mention a few common trace flags used with sql server?

544


What is equi join with example?

558