odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in...

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in...


    Hi,

    i have a MS Access database X, i'm using EasyPHP, ODBC is running, and my
    php file contains :
    $user = "root";
    $pass = "";
    $base = "X";
    $idf = odbc_connect($base, $user, $pass);

    and the result is :

    Warning: odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in
    c:\documents and settings\...\test.php on line 16

    Why ? How to correct the problem ?
    Help me please.

    Thanks.

    Jean-Claude


    Jean-Claude MONOT Guest

  2. Similar Questions and Discussions

    1. Error Checkbox State inside Datagrid
      Hello, I have one checkbox inside a datagrid and I want to read the state of the checkbox after submit. The checkbox is autopostback = false...
    2. #22971 [Com]: Error in odbc_prepare or in odbc_connect?
      ID: 22971 Comment by: maxi at paoloastori dot com Reported By: anton at esrr dot ru Status: No Feedback Bug...
    3. Session State error -- trying to load public variables
      Never mind, I think I've realized that some of the Session vars wouldn't not be set at this page's load time. So I just declared them as name/type...
    4. View State is invalid Error on webfarm!
      Are the pages 100% idential on both servers? "David Grubbs" <dgrubbs@yahoo-inc.com> wrote in message...
    5. State Server error 1074
      I cannot find any documentation on this state server error. Any suggestions? ---------------------------------------- Event Type: Error Event...
  3. #2

    Default Re: odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in...

    [[ This message was both posted and mailed: see
    the "To," "Cc," and "Newsgroups" headers for details. ]]

    In article <41584fae$0$726$8fcfb975@news.wanadoo.fr>, Jean-Claude MONOT
    <jean-claude.monot@wanadoo.fr> wrote:
    > Hi,
    >
    > i have a MS Access database X, i'm using EasyPHP, ODBC is running, and my
    > php file contains :
    > $user = "root";
    > $pass = "";
    > $base = "X";
    > $idf = odbc_connect($base, $user, $pass);
    >
    > and the result is :
    >
    > Warning: odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in
    > c:\documents and settings\...\test.php on line 16
    >
    > Why ? How to correct the problem ?
    > Help me please.
    >
    > Thanks.
    >
    > Jean-Claude
    You need an ODBC DSN "X", not an MS Access DB "X".

    You only need $user and $pass values if the MS Access DB has access
    restrictions set up.

    Good luck,

    Ted

    --
    A: Yes. [url]http://learn.to/attribute[/url]
    | Q: Are you sure?
    | | A: Because it reverses the logical flow of conversation.
    | | | Q: Why is top posting frowned upon?

    Ted Thibodeau, Jr. // voice +1-781-273-0900 x32
    Evangelism & Support // mailto:tthibodeau@openlinksw.com
    OpenLink Software, Inc. // [url]http://www.openlinksw.com/[/url]
    [url]http://www.openlinksw.com/weblogs/uda/[/url]
    OpenLink Blogs [url]http://www.openlinksw.com/weblogs/virtuoso/[/url]
    [url]http://www.openlinksw.com/blog/~kidehen/[/url]
    Universal Data Access and Virtual Database Technology Providers
    Ted Thibodeau Jr Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139