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.
| 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 |
|
|
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 |
 |
|
|
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. |
 |
|
|
|
|
|