10 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Win32::OLE;
$conn = Win32::OLE->new("ADODB.Connection");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=D:\auftrag.mdb;Mode=Share Deny None");
$RS = $conn->Execute("SELECT memo FROM table");
if (!$RS) {
$Errors = $conn->Errors();
die "Errors:\n", map { "$_->{Description}\n" } keys %$Errors;
}
while ( !$RS->EOF ) {
my $memo = $RS->Fields('memo')->Value;
print "$memo\n";
$RS->MoveNext();
}
$RS->Close();
$conn->Close();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Win32::OLE;
$conn = Win32::OLE->new("ADODB.Connection");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=D:\auftrag.mdb;Mode=Share Deny None");
$RS = $conn->Execute("SELECT memo FROM table");
if (!$RS) {
$Errors = $conn->Errors();
die "Errors:\n", map { "$_->{Description}\n" } keys %$Errors;
}
while ( !$RS->EOF ) {
my $memo = $RS->Fields('memo')->Value;
print "$memo\n";
$RS->MoveNext();
}
$RS->Close();
$conn->Close();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sub msa_connect {
my $DSN = 'driver=Microsoft Access Driver (*.mdb);dbq=';
my $dbh = DBI->connect(
"dbi:ODBC:$DSN$config{'db_name'}",
$config{'db_user'},
$config{'db_pwd'},
{
PrintError => 0,
RaiseError => 1,
LongReadLen => $config{'LongReadLen'},
LongTruncOk => 0
}
) or oops($DBI::errstr);
return $dbh;
}
QuoteFalsch ist immer ein sehr hartes Wort
QuoteDanke für Deine Lösung - werde mal beides ausprobieren und benchmarken - bin gespannt was dabei rauskommt ...
10 Einträge, 1 Seite |