Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 1302

PHP odbc_connect on a running SQL Anywhere 16 server

$
0
0

Hello,

 

please help with the following php odbc_connect problem:

 

On my local machine (win 7, 64 bits) is a running SQL Anywhere 16 database. Started with

 

dbeng16.exe -c 8m -n xx_test "G:\DEMOS\xx\DB16\test.db"

 

In the ODBC manager then created a ODBC connection (xxdsn).

 

But the connection from PHP 5.3.8 fails:

 

$verbindung = odbc_connect('xxdsn', 'dba', 'sql');

It shows

 

Warning: odbc_connect() [function.odbc-connect]: SQL error: [Sybase][ODBC Driver][SQL Anywhere]Datenbankserver nicht gefunden, SQL state 08001 in SQLConnect in verbindung.php on line 4

 

The database is definitively runnig. Tested by opening an odbc connection from isql.

 

When I create an odbc connection on a database file, I can make an php odbc_connect.

 

This problem is only on the Win 7 machine and also with SQL Anywhere 12.

 

When I try the same on a (32 bits) XP machine it runs fine.

 

Please help, to find my mistake.

 

Thanks in advance!

 

Best regards,

 

Peter


Viewing all articles
Browse latest Browse all 1302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>