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

Answer Posted / nazeema

Stored procedures can change server environment and our
operating system environment.
Function can not change server environment and our
operating system environment.

Stored procedures are stored in parsed and compiled format
in the database.
Functions are compiled and executed at run time.

Stored procedure return more than one value or Dataset.
Fuction can return a single value only.

error handling can be done in Stored procedure.
it not possible in function.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where in ms sql server is ’100’ equal to ‘0’?

602


How to send email from database?

589


Explain filestream storage of sql server 2008?

520


Where sql server user names and passwords are stored in sql server? : sql server database administration

586


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

550






How to find Duplicate Records In table?

587


What is normalization and its types?

540


Is resultset an interface?

560


What is the most common trace flags used with sql server?

524


How to enable/disable indexes?

600


What is use of except clause? How it differs from not in clause?

604


Why de-normalization required?

576


What are the different Authentication modes in SQL Server and how can you change authentication mode?

647


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

647


Some queries related to SQL

592