Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / pavan pareta

1) functions are used for computations where as procedures
can be used for performing business logic
2) functions MUST return a value, procedures need not be.
3) you can have DML(insert, update, delete) statements in a
function. But, you cannot call such a function in a SQL
query..eg: suppose, if u have a function that is updating a
table.. you can't call that function in any sql query.-
select myFunction(field) from sometable; will throw error.
4) function parameters are always IN, no OUT is possible

Is This Answer Correct ?    145 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ssl in sql server?

1082


What is table valued function and scalar valued functions?

1094


What are different types of replication in sql server?

1090


You want to implement the one-to-one relationship while designing tables. How would you do it?

966


What is sql or structured query language?

1157


List out a number of the wants to setup a SQL Server failover cluster?

1075


Determine when to use stored procedure to complete sql server tasks?

1055


What is PROJECTION Operation?

1026


Why are you getting errors when creating a new odbc dsn?

1225


What is meant by referential integrity?

1011


What is standby servers? Explain types of standby servers.

995


What do you understand by SQL*Net?

1037


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

169


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

996


List types of tables in SQL Azure?

126