Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Error 6082 on Linux Debian 4

2 posts in PHP Last posting was on 2008-12-03 10:50:47.0Z
Guillaume D. Posted on 2008-12-02 15:51:34.0Z
Reply-To: "Guillaume D." <gduval@gmail.com>
From: "Guillaume D." <gduval@gmail.com>
Newsgroups: advantage.PHP
Subject: Error 6082 on Linux Debian 4
Date: Tue, 2 Dec 2008 16:51:34 +0100
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: 82.239.162.186
Message-ID: <49355757@solutions.advantagedatabase.com>
X-Trace: 2 Dec 2008 08:42:15 -0700, 82.239.162.186
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!82.239.162.186
Xref: solutions.advantagedatabase.com Advantage.PHP:926
Article PK: 1135409

Hi,
i'm having the following error with ADS 9.1 on PHP 4.4.9/Apache 2.2.3 trying
to connect to a ADS local server on Windows.

Warning: SQL error: [iAnywhere Solutions][Advantage SQL][ASA] Error 6082:
Error loading the Advantage Local Server DLL. axServerConnect, SQL state
HY000 in SQLDriverConnect in /var/www/apache2-default/test.php on line 15
Connection failed: HY000 [iAnywhere Solutions][Advantage SQL][ASA] Error
6082: Error loading the Advantage Local Server DLL. axServerConnect


here is the code :

<?php

$ads_DSN =
"DataDirectory=\\\\192.168.10.66\\c\\data;DefaultType=FoxPro;ServerTypes=2";
$ads_user = "";
$ads_pass = "";
echo "Connecting to Server<br>\n";
$rConn = ads_connect($ads_DSN, $ads_user, $ads_pass);

if ($rConn == FALSE) {
$strErrCode = ads_error();
$strErrString = ads_errormsg();
echo "Connection failed: " . $strErrCode . " " . $strErrString .
"<br>\n";
} else{
echo "Connection successful!<br>\n";
}
?>



Do you have any clues ?
Thanks in advance....

Guillaume D.


Joachim Duerr (ADS) Posted on 2008-12-03 10:50:47.0Z
From: "Joachim Duerr (ADS)" <jojo.duerr@gmx.de>
Subject: Re: Error 6082 on Linux Debian 4
Newsgroups: Advantage.PHP
References: <49355757@solutions.advantagedatabase.com>
Date: Wed, 3 Dec 2008 11:50:47 +0100
User-Agent: XanaNews/1.19.1.110
X-Face: u2p+</,mb|Ah!x!/qxX5q0t:O~.<1&JzwNHYhSqcviY{~&|iDc"U.Je1A.ZeHR`d;;y#R
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 10.56.66.108
Message-ID: <49366303@solutions.advantagedatabase.com>
X-Trace: 3 Dec 2008 03:44:19 -0700, 10.56.66.108
Lines: 51
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!10.56.66.108
Xref: solutions.advantagedatabase.com Advantage.PHP:927
Article PK: 1135411


Guillaume D. wrote:

>i'm having the following error with ADS 9.1 on PHP 4.4.9/Apache 2.2.3
>trying to connect to a ADS local server on Windows.
>
>Warning: SQL error: [iAnywhere Solutions][Advantage SQL][ASA] Error
>6082: Error loading the Advantage Local Server DLL. axServerConnect,
>SQL state HY000 in SQLDriverConnect in
>/var/www/apache2-default/test.php on line 15 Connection failed: HY000
>[iAnywhere Solutions][Advantage SQL][ASA] Error 6082: Error loading
>the Advantage Local Server DLL. axServerConnect

from the help file:
Problem: The Advantage Local Server DLL could not be loaded. The
Advantage Local Server will not be available to your Advantage
application.

Solution: Put the applicable Advantage Local Server DLL (ADSLOC32.DLL)
somewhere in your client PC's search path (e.g., your \WINDOWS\SYSTEM
directory).

btw:
Apache/PHP is a middleware. You're not allowed to use Local Serer in a
middleware environment:

<snip>
The specific text in the Advantage end user license agreement regarding
use of Advantage Local Server and middleware connections (Section B) is
as follows. Refer to the Advantage license agreement, license.txt, for
the complete EULA.
If an application using this SOFTWARE PRODUCT is distributed to work
without the Advantage Database Server (i.e., it uses the Advantage
Local Server to access data), the application must act as a "client"
that directly accesses and uses the data. To be specific, only
computers that have the Advantage Local Server DLL loaded into memory
can have access to the data that is obtained by that Advantage Local
Server DLL. The application cannot act as "middleware" or as a "server"
by having the data forwarded by any means to a separate computer. In
other words, it is illegal to use the Advantage Local Server with a web
server, an application server, a terminal server, or any other type of
middleware or server product to access data on behalf of remote
computers. An Advantage Database Server (a.k.a., remote server) product
must be purchased and used to allow this SOFTWARE PRODUCT to access
data on behalf of applications running on remote computers.
</snip>

--
Joachim Duerr
Advantage Presales
Sybase GmbH
please don't reply via email