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
Explain how to integrate the ssrs reports in application?
in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration
How does the report manager work in SSRS?
What is sql server profiler?
What is a database table?
How do you delete a trigger?
how many type of indexing in database?
What do you understand by recursive stored procedure?
What are logical database components? : SQL Server Architecture
What is inner join? Explain with an example?
application server is slow what may be the problem
What are various ways to enhance the ssrs report?
What is the maximum size of column in sql server?
Do you know what is a trace frag? Where do we use it?
Is there any difference between primary key and unique with the not null condition?