Re: Standard DBI Proposal



In article <5oou05FngqlvU1@xxxxxxxxxxxxxxxxxx>,
Kevin Kenny <kennykb@xxxxxxx> wrote:

I owe you an explanation of why I haven't tried ODBC on Unix
for quite some time. I have always found ODBC, even on its
native Windows, to be slow, and often have stability issues
with it as well. I use it to connect to Jet databases and

I've had fairly good luck using ODBC with Tcl on Unix and
Windows, but can't say that for what I was doing that I
noticed any kind of slowness or instability.

A benchmark (ducking for cover [*]) would be better to evaluate
any performance penalty in using ODBC. Ideally, it would test
the three Tcl ODBC drivers with the two open source ODBC
driver managers (UnixODBC and iODBC), Windows and MacOSX ODBC,
against database specific Tcl drivers (i.e., SQLite, Oratcl,
PgTcl, Mysqltcl, etc.)

[*] database benchmarking generally accepted as more of a
black art/Heisenberg science than most other benchmarks.
And we all know about "lies, damn lies, and benchmarks."


and go." Having to deal with configuring ODBC data sources,
installing *three* separate ODBC layers on Unix (ODBC
itself, an ODBC driver for the database, and a Tcl-ODBC layer)
would totally destroy that advantage. ODBC therefore
loses out on grounds of both convenience and performance.

Note that ODBC also allows connection strings to be specified
in the connect string, without having to define a datasource
in advance. See the Wiki page for TclODBC for samples. A
small helper Tcl proc could easily build connections strings
for a variety of known databases.

If having a database independent layer is a goal for TCT,
then you could eliminate two of those installations layers
by shipping and compiling the driver manager and Tcl interface
with Tcl. That might be easier than designing and coding
a whole new interface layer.

--
Tom Poindexter
tpoindex@xxxxxxx
.



Relevant Pages

  • Re: Nameless CREATE
    ... The starting point is either an existing database or one that is ... "Describe" involves issuing an SQLDescribeCol function to ODBC ... essentially much the same as character data type apart from all 8 bits ... ALTER TABLE tablename ADD COLUMN BinaryColumn BINARY ...
    (comp.lang.forth)
  • Re: fields queries and utter disaster
    ... Unfortunately the \c ODBC DATABASE field switch is not supported in Word ... of course supports ODBC connections but Word ... Mac Word Test ... suggests that it should be possible to use query files (cf. .qry/.dqy ...
    (microsoft.public.mac.office.word)
  • Re: [VW 7.3.1] ODBCConnection
    ... I played around with a few combinations on the connection string and ... with a trusted SQL Server connection. ... there are differences for database connects. ... > any database specific odbc drivers. ...
    (comp.lang.smalltalk)
  • Re: Serious Problem with Date in RecordSource
    ... Yes, this is ODBC data, not JET data, so some if the things I suggested ... >> c): Decompile the database. ... Still in the code window, choose Compile from the Debug menu. ... rather than allenbrowne at mvps dot org. ...
    (microsoft.public.access.formscoding)
  • Re: CDatabase, CDaoDatabase
    ... raw ODBC calls ... DAO will outperform ODBC (and so CDatabase) considerably in single user ... There is considerably more to database performance than making quick ...
    (microsoft.public.vc.mfc)