Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: "code" tabl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 33 of 43 Topic 3190 of 3283
Post > Topic >>

Re: "code" tables?

by "David Cressey" <cressey73@[EMAIL PROTECTED] > Jun 24, 2008 at 11:41 AM

"Roy Hann" <specially@[EMAIL PROTECTED]
> wrote in message
news:SPGdnTDxOuOeXcLVnZ2dnUVZ8q7inZ2d@[EMAIL PROTECTED]
> "David Cressey" <cressey73@[EMAIL PROTECTED]
> wrote in message
> news:GcO7k.7467$qb7.5691@[EMAIL PROTECTED]
> >
> >> > Get the programmors off their ***** and tell them to learn how to
write
> >> > dynamic SQL.
> >>
> >> Hmm, better watch it here.  :-)  Both he and I are programmers.
> >> Though I'm not sure where dynamic SQL comes in to play here.
> >
> > I'm not sure how dynamic SQL applies either...
>
> I'd better explain then, since someone else queried it.
>
> When the OTLT is combined with EAV you seem to be able to get away with
> having a single maintenance function.  If you abandon OTLT and have
multiple
> lookup tables then EAV is seen to be as stupid as it is, and so that
gets
> abandoned too.  At which point it seems you need a distinct maintenance
> function for each lookup table.    Dymanic SQL allows you to code a
single
> maintenance function because you can adapt to different numbers of
columns
> and columns of different types.
>
> Obviously this is not an issue with interfaces like ODBC and JDBC, where
you
> already code at a low level similar to dynamic SQL, but it is unfamiliar
to
> Cobol programmers and their kind, who are used to embedded SQL.
>
This is extremely interesting to me.  I want to question what you are
saying
and maybe even differ with you,  but I don't want to start another one of
those sterile usenet debates.  I've read enough of what you write to have
respect for your opinions,  and I hope that's mutual.  So I hope we can
explore this subject in some detail, and generate more light than heat.

I'm more familiar with embedded SQL as an interface to application code
than
I am with ODBC or JDBC interfaces.  (I never programmed in COBOL but I
taught database programming to COBOL programmers).  I suspect that low
level
programming carries a cost with it,  and that part of that cost is that
programmers continue to "think like programmers",  instead of learning to
think in SQL.  That could be part of the attraction of OTLT and EAV to
them.

But the embedded SQL that I used was not "dynamic", as I understand the
term.  The precompiler processed the embedded SQL,  opened a database
whose
metadata was supposed to be the same as the target database,  rewrote the
SQL in some lower level language that I didn't need to know,  and replaced
the emebedded SQL with calls to these generated lower level routines
before
passing the result to the compiler.    We had something we called
"dynamic"
SQL as well.  But that involved generating SQL at run time,  and letting
an
SQL interpreter parse it.  I suspect you are using "dynamic"  in a
different
sense than I am,  but I'm not sure.

In any event,  the interesting thing is, IMO, not so much at what point
the
SQL is parsed and bound,  but how automatic the process is of generating
the
SQL needed to reference and maintain a new code table.  Back in the day,
new code tables didn't occur often enough to do some heavy automation of
the
process,  but the necessary coding was so well understood that the manual
effort was relatively trivial.  So the idea of storing all in one table
"to
save programming effort"  seemed like a bad joke to me.  And the "delay
due
to the cranky DBA"  was not the kind of issue in my context that it is in
some of today's programmers.

In all my years of visiting newgroups and other forums,  I've never quite
learned why programmers think that database programming is so difficult. 
I
think this discussion might help me understand that.  Thanks for a
considered reply.





In all my years of discussing
 




 43 Posts in Topic:
"code" tables?
"Frank Swarbrick&quo  2008-06-18 18:16:04 
Re: "code" tables?
Marco Mariani <marco@[  2008-06-19 10:57:06 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-19 10:31:51 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-19 15:45:01 
Re: "code" tables?
--CELKO-- <jcelko212@[  2008-06-20 21:26:24 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-19 13:51:44 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-19 13:53:18 
Re: "code" tables?
"Roy Hann" <  2008-06-20 09:49:59 
Re: "code" tables?
Ed Prochak <edprochak@  2008-06-24 04:39:56 
Re: "code" tables?
Ed Prochak <edprochak@  2008-06-24 07:06:10 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-20 18:20:37 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-20 18:23:33 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-21 12:04:00 
Re: "code" tables?
"David Cressey"  2008-06-23 14:15:22 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-23 20:04:00 
Re: "code" tables?
Gene Wirchenko <genew@  2008-06-23 18:18:26 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-24 03:42:56 
Re: "code" tables?
"David Cressey"  2008-06-24 11:20:16 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-24 12:58:37 
Re: "code" tables?
"David Cressey"  2008-06-24 14:01:23 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-25 05:13:26 
Re: "code" tables?
"David Cressey"  2008-06-25 14:47:13 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-26 12:08:21 
Re: "code" tables?
"Roy Hann" <  2008-06-26 13:53:32 
Re: "code" tables?
Gene Wirchenko <genew@  2008-06-26 09:52:50 
Re: "code" tables?
"David Cressey"  2008-06-26 17:31:31 
Re: "code" tables?
Marco Mariani <marco@[  2008-06-27 10:31:30 
Re: "code" tables?
"Arved Sandstrom&quo  2008-06-28 10:19:00 
Re: "code" tables?
"David Cressey"  2008-06-26 13:11:03 
Re: "code" tables?
"David Cressey"  2008-06-24 11:05:30 
Re: "code" tables?
"David Cressey"  2008-06-23 14:13:58 
Re: "code" tables?
"Roy Hann" <  2008-06-23 16:23:46 
Re: "code" tables?
"David Cressey"  2008-06-24 11:41:44 
Re: "code" tables?
"Roy Hann" <  2008-06-24 14:47:39 
Re: "code" tables?
"David Cressey"  2008-06-24 14:26:09 
Re: "code" tables?
"Roy Hann" <  2008-06-24 16:05:05 
Re: "code" tables?
"David Cressey"  2008-06-24 18:09:27 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-23 10:16:23 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-23 15:47:12 
Re: "code" tables?
"Roy Hann" <  2008-06-24 01:15:59 
Re: "code" tables?
"David Cressey"  2008-06-24 12:36:50 
Re: "code" tables?
"Frank Swarbrick&quo  2008-06-24 13:56:05 
Re: "code" tables?
"Roy Hann" <  2008-06-24 21:13:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:24:18 CST 2008.