Leser: 1
2 Einträge, 1 Seite |
1
2
3
DBD::Sybase::st execute failed: OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (52)
Server server.domain.de:4100, database
Message String: Unknown marker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/perl
use warnings;
use strict;
use DBI;
use DBD::Sybase;
my $servername = 'server.domain.de';
my $database = 'NIC';
my $user = "sascha";
my $password = "geheim";
my $dsn = "Class:DBI:Sybase:$database:$servername";
my $dbh = DBI->connect('dbi:Sybase:server=server.domain.de:4100', $user, $password);
unless ($dbh) { # Fehlerabfrage
die "ERROR $dsn: ", DBI-> errstr(), "\n";
} # unless
my $sth = $dbh->prepare("
select c.names, c.address, c.city, c.postalCode, d.handle
FROM NIC..CONTACTS c, NIC..OBJECTLINKS o, NIC..DOMAINS d
where c.names like '%irgendwas%'
and c.postalCode like '%12345%'
and c.handle is null
and o.targetType = (select objectTypeId from NIC..OBJECTTYPES where objectType = 'Contact')
and o.targetId = c.contactId
and o.sourceType = (select objectTypeId from NIC..OBJECTTYPES where objectType = 'Domain')
and o.sourceId = d.domainId
and o.roleId = (select roleId from NIC..ROLES where text = 'owner')
");
$sth->execute;
my $results = $sth->fetchall_arrayref;
$sth->finish();
$dbh->disconnect();
2 Einträge, 1 Seite |