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
 Site Related Forums
 The Yak Corral
 The Pros and Cons of Stored Procedures

Author  Topic 

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2009-05-13 : 05:49:17
this is a video from TechEd. Preety cool.

http://www.msteched.com/online/view.aspx?tid=1fd917e2-e451-44c2-b515-c778325846fe

a must watch for whitefang

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.5 out!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-05-13 : 06:44:50
51 minutes?
Can you post the highlights?



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

pootle_flump

1064 Posts

Posted - 2009-05-13 : 12:34:31
Heh - I was just looking for that vid, and google brought me here.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2009-05-13 : 12:45:22
hahaha. nice

well the bottom line is use sprocs by default unless you have a really good reason not to use them.

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.5 out!
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-05-13 : 13:11:56
Like n-tier enterprise Microsoft Access applications?
Wow, that made me remember Microsoft Access do not have stored procedures. They are called queries.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-13 : 13:20:37
Well, it doesn't have an optimizer either, so you don't really need sprocs.

At least that's what Joe Celko said 11 years ago...
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2009-05-13 : 15:10:47
I'm very disappointed that whitefang never responds when I start debating (baiting) him.

I guess n-tier Enterprise Level architects are just too serious to want to play.





CODO ERGO SUM
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-13 : 17:50:04
Yeah, he bailed on this thread after my last reply:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=125202

Maybe I stumped him.
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2009-05-14 : 07:24:56
Yea, and you locked the thread where he tried to say I was using the appeal to authority fallacy. I never got to tell him he was a hypocrite and that I was ridiculing his citing a source, then stating the OPPOSITE of what it said...

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=124387

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL or How to sell Used Cars
For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-14 : 08:17:56
Sorry about that. Did you see this one:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=125549

He's already made your argument for you.
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2009-05-14 : 10:56:19
Saw the start of that one. Just caught up with it.

[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL or How to sell Used Cars
For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2009-05-14 : 14:29:38
quote:
Originally posted by Peso

Like n-tier enterprise Microsoft Access applications?
Wow, that made me remember Microsoft Access do not have stored procedures. They are called queries.


Access queries are akin to SQL Server views, not sprocs. To implement anything sproc-like you'd have to do it in a VB code module.

________________________________________________
If it is not practically useful, then it is practically useless.
________________________________________________
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2009-05-14 : 18:44:41
You can add parameters to Access queries and it will prompt you when you run it. You can then pass parameters to it via VB script or from a form. I think you can do it with an Access (non-VB) macro too, can't remember.
Go to Top of Page

pootle_flump

1064 Posts

Posted - 2009-05-15 : 05:15:02
quote:
Originally posted by Peso

Wow, that made me remember Microsoft Access do not have stored procedures.
Actually, JET does support stored procedures...however, they must be inline (no multi line statements in JET SQL) so they are absolutely **** all use unless you just want to obfuscate your application (IIRC they don't appear in any of the Access windows).
Go to Top of Page

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2009-05-15 : 14:52:05
quote:
Originally posted by robvolk

You can add parameters to Access queries and it will prompt you when you run it. You can then pass parameters to it via VB script or from a form. I think you can do it with an Access (non-VB) macro too, can't remember.


You can query a view with parameters as well, and the prompting is just part of the built-in GUI.
Point is, Access queries must be single step statements, like views. You can't do multi-step processing or any of the other complex actions that can be done in sprocs unless you put them in a VB module.

________________________________________________
If it is not practically useful, then it is practically useless.
________________________________________________
Go to Top of Page
   

- Advertisement -