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

Answer Posted / vampire007

1. Functions can be used inline with a select statement
while sprocs can't.

2. EXEC command can't be used inside a Function where it
can be used inside an sproc.

Is This Answer Correct ?    75 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a trigger what are the advantages of trigger?

535


how many type of indexing in database?

585


What is the cartesian product of table?

555


What is a unique key constraint?

539


How to delete all rows with truncate table statement in ms sql server?

497






What are the advantages of using cte?

561


How do you debug a procedure in sql server?

504


What is the difference between DATETIME2 and DATETIME?

638


Would you store your query in a ssrs report or a database server? State the reason why?

110


How do you set a trace flag in sql server?

565


How to update multiple rows with one update statement in ms sql server?

641


How to join two tables in a single query in ms sql server?

549


What is the difference between upgrade and migration in sql server?

600


What is an expensive query?

542


How many categories of functions based their return modes?

598