Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 7th, 2008, 06:25 AM
Authorized User
 
Join Date: Dec 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stored Proc vs Functions.

Hi,

Could anyone explain the Stored Proc vs Functions from Performance perpestive. I know Function perform row by row processing but when i execute the same insert statement (say for instance, 5 insert statement) in storedprocedure it also perform row by row processing as function do. What make the difference w.r.t Performance/network congestion.

Thanks in advance,
Chandra
__________________
Thanks,
Chandra
 
Old January 7th, 2008, 07:17 AM
Authorized User
 
Join Date: Jul 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mujahidkhaleel
Default

Function and Procedures have different use, rather than performance. Function is used to return single value, for example if you want to convert Centigrade to Fahrenheit, you can write SELECT CENTIGRADE(Temperature) FROM TABEL tblWEATHER. Here CENTIGRADE is custom function. Stored Procedures are basically used where you want to execute set of statements in one call.

Hope this helps!


Mujahid Khaleel
Web designing, development, E-commerce applications.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Proc vs Trigger carumuga SQL Server 2005 1 January 7th, 2008 11:38 AM
Stored Proc that returns a value elygp SQL Server 2000 4 May 9th, 2007 01:05 AM
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
How to get value from stored proc busybee ASP.NET 1.0 and 1.1 Basics 4 April 2nd, 2006 01:06 AM
Simplify the stored proc stephanel SQL Server 2000 3 August 5th, 2003 08:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.