|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-09 21:02 UTC] info at genitek dot net
[2005-05-10 00:46 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
Description: ------------ php.ini-dist with register global ON MDAC 2.8 Apache 1.3.33 PHP 4.3.10 Reproduce code: --------------- $conn=odbc_connect("SYSTEM_DNS", "", ""); if (!$conn) { Error_handler( "Error in odbc_connect" , $conn ); } $query="Select * from QUERY"; $result = odbc_exec($conn,$query); if (!$result) { exit("Error in SQL"); } Expected result: ---------------- Return no error ! Actual result: -------------- Return, ODBC error, I receive in the ODBC trace log this : httpd 368-3ac EXIT SQLConnectW with return code -1 (SQL_ERROR) HDBC 00A412F8 WCHAR * 0x00A42500 [ -3] "SYSTEM_DNS\ 0" SWORD -3 WCHAR * 0x1F7C4AA0 [ -3] "******\ 0" SWORD -3 WCHAR * 0x1F7C4AA0 [ -3] "******\ 0" SWORD -3 DIAG [S1000] [Microsoft][Pilote ODBC Microsoft Access] Impossible d'ouvrir la base de donn?es '(Inconnu)'. Ce n'est peut-?tre pas une base de donn?es que votre application reconna?t, ou le fichier est peut-?tre endommag?. (-1028) And the only thing I have to do to correct the problem, RESTART APACHE.... than return or refresh the web site.. and everithing is OK for a moment... how long, I can figure...