Sybase connection error

L

lnatz

Hi I am having a problem with this line of code:
$DBH =
DBI->connect("dbi:Sybase:server=$dbserver", $dbuser, $dbpassword)
|| die "$DBI::errstr";
$DBH->do("use $database");

I am getting this error when executing:
DBI connect('server=NYT_LIBRAONLINE','natrabi
',...) failed: Server message number=4002 severity=14 state=1 line=0
server=NYTINV3T002 text=Login failed.
OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
Server NYT_LIBRAONLINE, database
Message String: ct_connect(): protocol specific layer: external error:
The attempt to connect to the server failed.
at ./purge.pl line 45
Server message number=4002 severity=14 state=1 line=0
server=NYTINV3T002 text=Login failed.
OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
Server NYT_LIBRAONLINE, database
Message String: ct_connect(): protocol specific layer: external error:
The attempt to connect to the server failed.


Basically I am trying to connect to Sybase and I can't figure out what
I am missing.
 
D

DJ Stunks

lnatz said:
Hi I am having a problem with this line of code:
$DBH =
DBI->connect("dbi:Sybase:server=$dbserver", $dbuser, $dbpassword)
|| die "$DBI::errstr";
$DBH->do("use $database");

I am getting this error when executing:
DBI connect('server=NYT_LIBRAONLINE','natrabi
',...) failed: Server message number=4002 severity=14 state=1 line=0
server=NYTINV3T002 text=Login failed.
OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
Server NYT_LIBRAONLINE, database
Message String: ct_connect(): protocol specific layer: external error:
The attempt to connect to the server failed.
at ./purge.pl line 45
Server message number=4002 severity=14 state=1 line=0
server=NYTINV3T002 text=Login failed.
OpenClient message: LAYER = (4) ORIGIN = (1) SEVERITY = (4) NUMBER =
(44)
Server NYT_LIBRAONLINE, database
Message String: ct_connect(): protocol specific layer: external error:
The attempt to connect to the server failed.


Basically I am trying to connect to Sybase and I can't figure out what
I am missing.

I would say this is an authentication problem:

http://manuals.sybase.com/onlineboo...vrtsg/@Generic__BookTextView/39367;pt=39281/*

-jp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top