Skip to Content.
Sympa Menu

freetds - Linux - SQL 7

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Esteban Aranda" <earanda AT tracker.com.ar>
  • To: <freetds AT franklin.oit.unc.edu>
  • Subject: Linux - SQL 7
  • Date: Fri, 17 Dec 1999 14:47:25 -0300


Sorry if the question it's too stupid, but I don't know how to use the
module freetds.

I´m using perl/DBI/DBD-ODBC to connect with my SQL7 in Win98/NT and my code
is something like this:

my ($sel) = " Select cod_atributo, cod_atributo_c from orden_busqueda".
" where tipo_entidad = 'ED'".
" order by orden";
my ($desc_te);
my $dbh1 = DBI->connect("dbi:ODBC:EntryDatabase", "user", "password");
my $sth1 = $dbh1->prepare( $sel );
$sth1->execute();
$sth1->bind_columns( undef, \$cod_atributo, \$cod_atributo_c );
while($sth1->fetch()) {
print "code:".$cod_atributo;
print "code2:".$cod_atributo_c;
}
$sth1->finish();
$dbh1->disconnect();

How can I do that in Linux with perl/DBI/FreeTDS ?

Thank you very much.

´¯`·.¸¸.·´Esteban·´¯`·.¸¸.·´
Earanda AT tracker.com.ar
Buteler & Peralta Ramos






Archive powered by MHonArc 2.6.24.

Top of Page