php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32321 SQL state 00000 in SQLConnect
Submitted: 2005-03-15 19:42 UTC Modified: 2005-03-25 01:47 UTC
Votes:5
Avg. Score:4.0 ± 0.9
Reproduced:3 of 4 (75.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: jogo_2 at yahoo dot com Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 5.0.3 OS: Windows XP
Private report: No CVE-ID: None
 [2005-03-15 19:42 UTC] jogo_2 at yahoo dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-15 19:46 UTC] jogo_2 at yahoo dot com
I also have installed mdac 2.8
 [2005-03-18 19:26 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-03-25 01:47 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 06:01:27 2024 UTC