Reading over the mailing list archives, I found some information about
getting table names. Unfortunately, the information that I retrieve
includes a lot of stuff, none of which are the names of the tables.
Here is the code:
my $dbh = DBI->connect('dbi:ODBC:database_name) || die DBI::errstr;
@tables=$dbh->tables;
$dbh->disconnect();
foreach $i (@tables) {
print "$tables[$i]<br>";
}
Here is the output:
MSysAccessObjects
MSysAccessObjects
MSysAccessObjects
MSysAccessObjects
MSysAccessObjects
MSysAccessObjects
MSysAccessObjects
What am I doing wrong as I am trying to get the table names from
a database?
Brad Smith