Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 functions/procedures/packages

Author  Topic 

briankind
Starting Member

17 Posts

Posted - 2009-07-25 : 02:10:09
Hi what are functions/procedures/packages and there common uses. what are the advantages of using them?
thanks

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-07-25 : 02:19:40
Follow this

http://www.google.co.in/search?hl=en&q=sql+functions+vs+stored+procedures&btnG=Google+Search&meta=&aq=0&oq=sql+functions+vs+

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

ddaurio
Starting Member

5 Posts

Posted - 2009-07-25 : 11:15:25
Just to tell you the minimum definitions:
-When you write your programs/applications, you want to break your code up into specific parts. Each part having a specific purpose. So, when you are debugging, you arent debugging 1000 lines of code.
-The difference between procedures and functions is that funcions return a value. So you would basically use it like a variable (x = getTotalCost()).

I would follow the above link and look at examples.

ddaurio
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-07-25 : 20:53:48
Brian,
can I ask you get good books for SQL Server and start reading since you are asking lots of introductory questions? And if you have any more questions after reading books/sources, then we can answer.
Go to Top of Page
   

- Advertisement -