What are the differences between stored procedure and
functions in SQL Server 2000?
Answer Posted / jeetu
Function can be used inside the queries but Store procedure never used inside the queries For Example Given below:
select avg(salary) from employee;// allowed here
avg(): is function
Select sp(salary) from employee // Not allowed here
sp(): is stored Procedure
Thanks
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain aggregate functions?
Do you know what is a with(nolock)?
What is the guest user account in sql server? What login is it mapped to it? : sql server security
What is SubQuery in SQL Server 2008
in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration
What is database white box testing?
What is a mutating table error and how can you get around it?
What is key attribute?
What happens if you add a new index to large table?
you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation
Explain primary key, foreign key and unique key?
What are the differences between ms sql server & oracle?
Explain what is lock escalation?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
Does index speed up select statements?