Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker <danielaparker@xxxxxxxxx>
- Date: Thu, 4 Dec 2008 12:19:55 -0800 (PST)
On Dec 4, 2:33 pm, S Perryman <q...@xxxxx> wrote:
Well, I just ran a perl script this morning, it has these lines in it,
If there is an ODBC client C, and a database server S with ODBC
capability, then if a developer is using a C provided by vendor V1
(C-V1) , then they must also use the S provided by V1 (S-V1) ??
my $snapshot_dbh = DBI->connect($snapshot_datasource, $snapshot_user,
$snapshot_password) or die ...
my $datamart_dbh = DBI->connect($datamart_datasource, $datamart_user,
$datamart_password) or die ...
I regard the perl script as my ODBC client, it's a free version of
perl from the company ActiveState.
$snapshot_datasource is the name of an ODBC driver registered as a
Windows datasource, it's a SQL Server ODBC driver, written by
Microsoft, I obtained that driver by downloading a DLL from
Microsoft's site. $datamart_datasource is the name of an ODBC driver
also registered as a Windows datasource, it's a Sybase driver, written
by Sybase, I obtained that driver by downloading a DLL from Sybase's
site. So I downloaded these drivers and registered them in Settings-
Control Panel->Administrative Tools -> Data Source (ODBC) ... Thecompany ActiveState did not write either of these drivers, nor does
ActivePerl come with any native Microsoft or Sybase database support.
My perl script contains stunningly beautiful perlish lines like
my $sth = $datamart_dbh prepare("select myattribute1,
myattribute2 from mytable") or die ...
$sth->execute() or die ...
my($myvariable1, $myvariable2);
\$sth->bind_columns( undef, \$myvariable1, \$myvariable2);
if ($sth->fetch())
{
It seems to work.
If you wrote a backend server, and provided an ODBC driver, I could
also use your backend server from within perl.
-- Daniel
.
- Follow-Ups:
- Re: Database Model - Class, objects and interaction [LONG]
- From: S Perryman
- Re: Database Model - Class, objects and interaction [LONG]
- References:
- Re: Database Model - Class, objects and interaction [LONG]
- From: topmind
- Re: Database Model - Class, objects and interaction [LONG]
- From: Dmitry A. Kazakov
- Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker
- Re: Database Model - Class, objects and interaction [LONG]
- From: Dmitry A. Kazakov
- Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker
- Re: Database Model - Class, objects and interaction [LONG]
- From: topmind
- Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker
- Re: Database Model - Class, objects and interaction [LONG]
- From: S Perryman
- Re: Database Model - Class, objects and interaction [LONG]
- From: topmind
- Re: Database Model - Class, objects and interaction [LONG]
- From: S Perryman
- Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker
- Re: Database Model - Class, objects and interaction [LONG]
- From: S Perryman
- Re: Database Model - Class, objects and interaction [LONG]
- From: Daniel Parker
- Re: Database Model - Class, objects and interaction [LONG]
- From: S Perryman
- Re: Database Model - Class, objects and interaction [LONG]
- Prev by Date: Re: Database Model - Class, objects and interaction [LONG]
- Next by Date: Re: Database Model - Class, objects and interaction [LONG]
- Previous by thread: Re: Database Model - Class, objects and interaction [LONG]
- Next by thread: Re: Database Model - Class, objects and interaction [LONG]
- Index(es):
Relevant Pages
|