ado and odbc problem

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ado and odbc problem

    I install a update to date ODBC and running following code to connect with
    DSN and get following error.
    My server binds with 2 IP and hosts 2 separate web. e.g. A and B. I test the
    code in web A. It is ok but fails in B. I don't know why. because the same
    environment for running code. The only difference is 2 web with 2 dfiferent
    IP. Please help. thx.




    Set Conn = Server.CreateObject("ADODB.Connection")
    //conn.ConnectionString = "DSN=connect_sql"


    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Driver Manager] Data source name not found and no default
    driver specified



    12345 Guest

  2. Similar Questions and Discussions

    1. FoxPro ODBC problem
      Hank, We have similar problems. Our traffic load is relativley heavy and we have to reboot the server sometims 3 or 4 times a day. We haven't...
    2. ODBC Problem
      Hi I get this error " Warning: SQL error: '' is not a valid name. Make sure that it does not include invalid characters or punctuation and that...
    3. Problem with OLEDB over ODBC
      I have an asp page used to access data from an access database. When I use the following as connection string (OLEDB)...
    4. Win32::ODBC problem
      I'm getting lots of "Use of uninitialized value in array element at C:/Perl/lib/Win32/ODBC.pm line 256." It seems that each matching row in the...
    5. ODBC Problem!
      I have just installed a new IIS Server and implemented security restrictions on it using the IIS Lockdown tool. I am now getting an Internat...
  3. #2

    Default Re: ado and odbc problem

    12345 wrote:
    > I install a update to date ODBC and running following code to connect
    > with DSN and get following error.
    > My server binds with 2 IP and hosts 2 separate web. e.g. A and B. I
    > test the code in web A. It is ok but fails in B. I don't know why.
    > because the same environment for running code. The only difference is
    > 2 web with 2 dfiferent IP. Please help. thx.
    >
    >
    >
    >
    > Set Conn = Server.CreateObject("ADODB.Connection")
    > //conn.ConnectionString = "DSN=connect_sql"
    >
    >
    > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    >
    > [Microsoft][ODBC Driver Manager] Data source name not found and no
    > default driver specified
    I don't know why your problem is occurring, but I strongly suspect you would
    have no problem if you would stop using ODBC. Use the native OLEDB provider
    for your database instead of the deprecated OLEDB Provider for ODBC.

    See [url]www.connectionstrings.com[/url] or [url]www.able-consulting.com/ado_conn.htm[/url] for
    OLEDB connection string examples.

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  4. #3

    Default Re: ado and odbc problem

    Consider dropping ODBC. Either that or open the .dsn file and post the conn
    string that works and the one that does not. Currently, we are shooting
    blind here.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    ************************************************
    Think Outside the Box!
    ************************************************
    "12345" <tommychu@landsearch.com.hk> wrote in message
    news:OuFA806REHA.3504@TK2MSFTNGP09.phx.gbl...
    > I install a update to date ODBC and running following code to connect with
    > DSN and get following error.
    > My server binds with 2 IP and hosts 2 separate web. e.g. A and B. I test
    the
    > code in web A. It is ok but fails in B. I don't know why. because the same
    > environment for running code. The only difference is 2 web with 2
    dfiferent
    > IP. Please help. thx.
    >
    >
    >
    >
    > Set Conn = Server.CreateObject("ADODB.Connection")
    > //conn.ConnectionString = "DSN=connect_sql"
    >
    >
    > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    >
    > [Microsoft][ODBC Driver Manager] Data source name not found and no default
    > driver specified
    >
    >
    >

    Cowboy Guest

  5. #4

    Default Re: ado and odbc problem

    Thanks.
    Actually, I use asp to connect to mySQL and use the tailor-made MySQL ODBC
    from mysql. My case is that I write a simple asp and connect to MySQL ODBC.
    I put this page in 2 different host for test. However, one page is ok and
    one fails. 2 web domain is in same server. I only setup 2 different web
    domain with 2 different IP only. I tried to make DSN from this server and
    test "Connection" to mySQL server. It is okey too. Thus, I don't know why.
    Thx.


    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> ¼¶¼g©ó¶l¥ó·s»D
    :et5NTJ8REHA.904@TK2MSFTNGP12.phx.gbl...
    > 12345 wrote:
    > > I install a update to date ODBC and running following code to connect
    > > with DSN and get following error.
    > > My server binds with 2 IP and hosts 2 separate web. e.g. A and B. I
    > > test the code in web A. It is ok but fails in B. I don't know why.
    > > because the same environment for running code. The only difference is
    > > 2 web with 2 dfiferent IP. Please help. thx.
    > >
    > >
    > >
    > >
    > > Set Conn = Server.CreateObject("ADODB.Connection")
    > > //conn.ConnectionString = "DSN=connect_sql"
    > >
    > >
    > > Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    > >
    > > [Microsoft][ODBC Driver Manager] Data source name not found and no
    > > default driver specified
    >
    > I don't know why your problem is occurring, but I strongly suspect you
    would
    > have no problem if you would stop using ODBC. Use the native OLEDB
    provider
    > for your database instead of the deprecated OLEDB Provider for ODBC.
    >
    > See [url]www.connectionstrings.com[/url] or [url]www.able-consulting.com/ado_conn.htm[/url] for
    > OLEDB connection string examples.
    >
    > Bob Barrows
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >

    12345 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