#32321 [NEW]: SQL state 00000 in SQLConnect

From: Date: Tue, 15 Mar 2005 18:42:17 +0000
Subject: #32321 [NEW]: SQL state 00000 in SQLConnect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75376@lists.php.net to get a copy of this message
From: jogo_2 at yahoo dot com Operating system: Windows XP PHP version: 5.0.3 PHP Bug Type: ODBC related Bug description: SQL state 00000 in SQLConnect Description: ------------ I'm using IIS from Windows XP and PHP 5.0.3 This code: $cx = odbc_connect("BDNEO", "", ""); returns this error: Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state 00000 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8 All my file permissions are right and there's no user or password. I tried User DSN and System DSN, both with the same result What am i doing wrong? Reproduce code: --------------- <html> <head> </head> <body> </body> <h1>Prueba de BD</h1> <?php $cx = odbc_connect("BDNEO", "", ""); odbc_close($cx); ?> </html> Expected result: ---------------- Connect to ODBC Actual result: -------------- Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state 00000 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8 -- Edit bug report at http://bugs.php.net/?id=32321&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32321&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32321&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32321&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32321&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32321&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32321&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32321&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32321&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32321&r=support Expected behavior: http://bugs.php.net/fix.php?id=32321&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32321&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32321&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32321&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32321&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32321&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32321&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32321&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32321&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32321&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32321&r=mysqlcfg

« previous php.bugs (#75376) next »