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
 Pros and Cons of Using Stored Procedures

Author  Topic 

gavakie
Posting Yak Master

221 Posts

Posted - 2007-09-19 : 11:05:08
Im about to start converting code to Stored Procedures for all my reports in Reporting Services. I was wondering what the pros and cons of this may be.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-19 : 11:07:40
Pros? Everything.
Cons? Nothing.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-09-19 : 11:11:36
pros: but obvious
cons: none if you have version control in place.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-19 : 12:04:17
Pros: Sunset Williams
Cons: OJ Simpson

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

sbalaji
Starting Member

48 Posts

Posted - 2007-09-19 : 13:44:52
Good old question.
have a look at this,this debate is going on for almost 3 yrs
http://www.codinghorror.com/blog/archives/000117.html


quote:
Originally posted by X002548

Pros: Sunset Williams
Cons: OJ Simpson

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam




i know OJ Simpson,who is Sunset Williams??

Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-19 : 14:38:08
Have you heard of Google?

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-19 : 14:58:23
I tried googling for Sunset Williams but didn't come up with anything. Perhaps you meant Serena Williams?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-19 : 15:10:19
Probably because you have safe search on

Remember she's a Pro



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-09-19 : 15:20:11
"Perhaps you meant Serena Williams?"

ROTFL! Different sort of Profession me-thinks ...

Reminds me of the old "French military victories" Google search

... sadly now fixed

Kristen
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-20 : 03:04:19
More debates
http://weblogs.asp.net/fbouma/archive/2003/11/18/38178.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-20 : 09:59:18
quote:
Originally posted by madhivanan

More debates
http://weblogs.asp.net/fbouma/archive/2003/11/18/38178.aspx

Madhivanan

Failing to plan is Planning to fail



Wow, how'dya find that...what a nightmare

Can you imagine if she started a toilet seat post?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-09-20 : 10:16:49
frans is a he

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-20 : 10:51:20
quote:
Originally posted by spirit1

frans is a he

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp



Well, that's the most bs I've ever read...even if the dynamic sql plan does get cached, which is a big if, security alone is reason enough



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-09-20 : 10:54:28
dynamic plan does get cached. this is much improved in sql server 2005 which even paramterized the cached plan.
so in essence the only real advanatage of sprocs is security.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-20 : 10:56:28
Really?

How much can it keep cached? And how would it know everytime it's throwing all of the dynamic crap at the optimizer? There still has to be more overhead



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-09-20 : 11:02:50
I like to think of a database schema as a class library. the tables are like the private members of those classes, and the procs are the public interface for the class library. some procs may not be accessible from the outside, they are like the private methods of the classes.

you wouldn't make all the members of your classes public would you?

a good design goal of any piece of software is to have a minimal but complete interface. exposing all table columns is complete, but it's far from minimal.


elsasoft.org
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-20 : 11:03:11
Atcually its Thomas, not willams

http://www.montelshow.com/show/detail/5139/



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-09-20 : 11:10:52
the cache is limited by memory.
every statement is first parametrized then it's stored in the cache.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -