RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Heald, Tim
y are procedures better? (was: RE: Securing CF Apps.) > Yes, we are having a generic technical debate, and what I am saying is > that >  when the team setup or hierarchical setup is not ideal, separating > work out >  makes the project move along faster. Stored procs come into play here

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Heald, Tim
o: CF-Talk Subject: RE: why are procedures better? (was: RE: Securing CF Apps.) > I certainly understand your position. But what does that have > to do with comparing stored procedures to queries? It may > matter in your particular situation, but we are supposed to > be having a generic

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
t;  Steve >-Original Message- >From: Matt Liotta [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 24, 2004 10:26 AM >To: CF-Talk >    Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) > >Maybe I don't understand your set

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Steve Nelson
So are you advocating cfincludes with queries instead of stored procs? Steve   -Original Message-   From: Matt Liotta [mailto:[EMAIL PROTECTED]   Sent: Wednesday, March 24, 2004 10:26 AM   To: CF-Talk   Subject: Re: why are procedures better? (was: RE: Securing CF Apps.)   Maybe I don&#

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Barry
> > psycho nazi dba's need to first get over themselves... > > a view to the tables can obscure enough if that's the reason... > Now Tony, I think thats a bit strong! Some companies employ people to know exactly whats going on with the DB. More a reflection of the value of information and the c

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Deanna Schneider
- Original Message - From: "Steve Nelson" Do > you have a development Oracle server you could try this on? I'm very curious > if there is a difference. I haven't tested since we switched to CFMX, but on CF 5.0 with Oracle 8.17, the "injected" sql would fail as invalid when it hit the dr

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Deanna Schneider
- Original Message - From: "Greg Luce" > Have you used ER Studio? Nope, I use SQL Navigator & SQL Plus, Oracle behind those. Don't think there's any auto-generating of stored procs in it. Don't think my boss would think it worthwhile to plop down more money just for that, either. [Todays

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
Maybe I don't understand your setup. In some CFM, you have to either call cfquery or cfstoredproc. If you need to change either the query or the stored procedure, you will need to edit this file. Now in either case, you could simply use a cfinclude to separate out either into a separate file th

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Moretti
> >  > The problem I always have with this example, despite the fact that 9/10 >  > the example itself doesn't work, is that it takes 2 minutes to set up >  > appropriate users for databases with appropriate grant levels and you >  > can even set the statements that can be executed in the DNS sett

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
>  I'm not quite clear on this. Of course SP's aren't the only way of >  separating business logic from presentation but aren't they one > possible >  means of doing so? SP's allow developers to abstract or separate > server-side >  functions from the client-side GUI. Multiple statements and > c

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tangorre, Michael
> Maybe I wasn't clear in my reply to that statement. There is > nothing inherent about stored procedures which makes them > better for separating out work. It is in fact the same amount > of work to separate queries as it is stored procedures. Well... As I already pointed out: Developer1 - Us

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Jochem van Dieten
Stephen Moretti wrote: >>Stephen Moretti wrote: >>> You are quite correct. >>> >>> Jochem's example will wind up with all the DROP TABLE junk in the text >>> field. >> >> Read again what I wrote about C-style escaping. Or just test it. > > Blows up on mySQL, but I see your point for less secure d

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Barry
Message- > From: Matt Liotta [mailto:[EMAIL PROTECTED] > Sent: 24 March 2004 13:10 > To: CF-Talk > Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) > > > The use of cfquery vs cfstoredproc has nothing to do with > separation of   > presentation f

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Moretti
> Stephen Moretti wrote: >  > You are quite correct. >  > >  > Jochem's example will wind up with all the DROP TABLE junk in the text >  > field. > > Read again what I wrote about C-style escaping. Or just test it. > Blows up on mySQL, but I see your point for less secure databases like Oracle..

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Dave Watts
> > That is a myth. Stored procedures are only faster than > > dynamic queries; not prepared statements. In fact, in some > > cases it is possible for a stored procedure to actually be > > slower than a dynamic query. > > This is simply your opinion which differs greatly from the DBAs > I've be

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
> Yes, we are having a generic technical debate, and what I am saying is > that >  when the team setup or hierarchical setup is not ideal, separating > work out >  makes the project move along faster. Stored procs come into play here > in >  that someone can tackle this aspect while other things

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
> This is simply your opinion which differs greatly from the DBAs I've >  been involved with. > It isn't my opinion; it is an easily provable fact. Go ask your DBAs what the difference in execution between a prepared statement and a stored procedure is. The answer is nothing. But, don't take my w

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tangorre, Michael
> I certainly understand your position. But what does that have > to do with comparing stored procedures to queries? It may > matter in your particular situation, but we are supposed to > be having a generic technical debate. Yes, we are having a generic technical debate, and what I am saying i

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
>  Well not all of us are in positions to control every aspect of a > project.. >  Nor are the people that are in charge always in line proper ways of > doing >  things. I'm just another person on the lower end of the totem pole. If >  everything ran as it should we wouldn't be having this conver

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Greg Luce
-Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 9:13 AM To: CF-Talk Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) > I don't think there have been convincing arguments that SPs help from > a  security stan

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Philip Arnold
> From: Jochem van Dieten > > This type of coding can be insecure. Just imagine what would > happen in Oracle, MySQL or any other database that use > C-style escaping when combined with: > "h4ck3r\'; DROP TABLE users; COMMIT; --"> But if you're using CFQUERYPARAM, then that wouldn't effect any

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Marlon Moyer
ination of several items.  The only way I've done that is with a dynamically built query within a stored proc and from what I gather, you lose all speed benefits with that design. -- marlon > Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) > > > I don't

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Jochem van Dieten
Stephen Moretti wrote: > You are quite correct. > > Jochem's example will wind up with all the DROP TABLE junk in the text > field. Read again what I wrote about C-style escaping. Or just test it. > If you try that against a numeric field, then you wind up with invalid > SQL which will throw a

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Steve Nelson
the quotes, not the database. Do you have a development Oracle server you could try this on? I'm very curious if there is a difference. Steve Nelson   -Original Message-----   From: Jochem van Dieten [mailto:[EMAIL PROTECTED]   Sent: Wednesday, March 24, 2004 3:34 AM   To: CF-Talk   Subject: RE: w

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tony Weeg
etter handle on the data make someone a better coder since the get the whole picture??? -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 9:09 AM To: CF-Talk Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) You are

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tangorre, Michael
> If your application is properly modularized there shouldn't > be all those different things in the same file anyway. Well not all of us are in positions to control every aspect of a project.. Nor are the people that are in charge always in line proper ways of doing things. I'm just another pers

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Moretti
, March 24, 2004 3:34 AM >   To: CF-Talk >   Subject: RE: why are procedures better? (was: RE: Securing CF Apps.) > >   This type of coding can be insecure. Just imagine what would happen in >   Oracle, MySQL or any other database that use C-style escaping when >   comb

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
> I don't think there have been convincing arguments that SPs help from a >  security standpoint, but from a performance standpoint I don't think >  it's debatable. > That is a myth. Stored procedures are only faster than dynamic queries; not prepared statements. In fact, in some cases it is possi

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Steve Nelson
Yeah, but CF will double up those quotes automatically. At least I thought it did. Steve   -Original Message-   From: Jochem van Dieten [mailto:[EMAIL PROTECTED]   Sent: Wednesday, March 24, 2004 3:34 AM   To: CF-Talk   Subject: RE: why are procedures better? (was: RE: Securing CF Apps

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Greg Luce
t: Wednesday, March 24, 2004 8:37 AM To: CF-Talk Subject: RE: why are procedures better? (was: RE: Securing CF Apps.) I cant see the correlation either... psycho nazi dba's need to first get over themselves... a view to the tables can obscure enough if that's the reason... and Im not sur

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
> Finally, I work in small teams quite often where we all need to make > bets >  use of our time, so sometimes if we are pressed for time, one person > will >  write the stored procs, while another works on the pages and another > the >  layout and UI. Imagine the hassle of trying to work on the

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Greg Luce
ast time I bought ER Studio it was around $800, I'm sure it's more now but it's one of my favorite tools. Greg -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 AM To: CF-Talk Subject: Re: why are procedures better? (

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tangorre, Michael
> I find that the most valid reason for using stored procedures > is for transaction processing. If I need to tie several > pieces of functionality together in one database hit, then > I'll put it in a stored proc. For example, I'm working on a > nested set procedure right now, where I need to

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
>  I find that the most valid reason for using stored procedures is for >  transaction processing. If I need to tie several pieces of > functionality >  together in one database hit, then I'll put it in a stored proc. For >  example, I'm working on a nested set procedure right now, where I > need

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tony Weeg
there ya go... a valid reason...however it has no bearing on security, more on functionality... good stuff -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 AM To: CF-Talk Subject: Re: why are procedures better? (was: RE

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Tony Weeg
Original Message- From: Stephen Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 5:23 AM To: CF-Talk Subject: RE: why are procedures better? (was: RE: Securing CF Apps.) While not wanting to get into the whole Stored Procedures V argument, I have to say there are times wh

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Deanna Schneider
-Original Message- From: Matt Liotta If that's all, I guess I'll continue to use cfquery. I find that the most valid reason for using stored procedures is for transaction processing. If I need to tie several pieces of functionality together in one database hit, then I'll put it in a stored

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Matt Liotta
  them - while I'm a big fan of separating business logic from   > presentation, >  for pure development speed you can't beat . > >  - Steve Barry > >  > -Original Message----- >  > From: Matt Liotta [mailto:[EMAIL PROTECTED] >  > Sent: 24 March 2004 01:48 &

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Stephen Barry
ion, for pure development speed you can't beat . - Steve Barry > -Original Message- > From: Matt Liotta [mailto:[EMAIL PROTECTED] > Sent: 24 March 2004 01:48 > To: CF-Talk > Subject: Re: why are procedures better? (was: RE: Securing CF Apps.) > > > > 1. They

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-24 Thread Jochem van Dieten
Steve Nelson said: > Just out silly curiousity, I'd love to hear the > advantages/disadvantages between these three versions of selecting a > recordset from a db. > > version 1 > - > >  select first_name >  from users >  where user_id='#url.user_id#' > Thi

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Steve Nelson
you think that makes a big difference. What makes one more secure than the other? Also, if these aren't the way to go, what's a better solution? Steve Nelson   -Original Message-   From: Matt Liotta [mailto:[EMAIL PROTECTED]   Sent: Tuesday, March 23, 2004 8:48 PM   To: CF-Ta

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Tony Weeg
b d e s i g n [EMAIL PROTECTED] www.revolutionwebdesign.com its only looks good to those who can see bad as well -anonymous -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 8:48 PM To: CF-Talk Subject: Re: why are procedures better? (was: RE: Sec

RE: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Tom Kitta
esday, March 23, 2004 8:48 PM   To: CF-Talk   Subject: Re: why are procedures better? (was: RE: Securing CF Apps.)   > 1. They execute faster.  The db (I only know from Oracle and SQL   > Server, if   >  others are different it doesn't really concern me) can optimize the   >  executio

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Matt Liotta
> 1. They execute faster.  The db (I only know from Oracle and SQL > Server, if >  others are different it doesn't really concern me) can optimize the >  execution plan. > Prepared statements execute at the same speed as stored procedures. >  2. You can often times do more. There are things I can

Re: why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Jochem van Dieten
Heald, Tim wrote: > 1. They execute faster.  The db (I only know from Oracle and SQL Server, if > others are different it doesn't really concern me) can optimize the > execution plan. Prepared statements have precompiled execution plans as well. > 3. You can limit access with them.  Now granted y

why are procedures better? (was: RE: Securing CF Apps.)

2004-03-23 Thread Heald, Tim
1. They execute faster.  The db (I only know from Oracle and SQL Server, if others are different it doesn't really concern me) can optimize the execution plan. 2. You can often times do more. There are things I can do in a pl/sql package/procedure that I cannot do in a query call 3. You can l