DB Connection Error: Data source name not found

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default DB Connection Error: Data source name not found

    Hei,

    I am using Dreamweaver MX 6.1, XP SP2 and trying to connect to a MS Access db.

    I can open & preview the page & data correctly using IIS and localhost.
    However, on the remote server I keep getting:

    "Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

    /Test.asp, line 5 "

    Line 5 reads: Recordset1.ActiveConnection = MM_WWCONNECT_STRING;

    I have tried:

    -Make sure a Data Source Name (DSN) has been created on both the web server
    and on the local machine.
    -The DSN may have been set up as a User DSN not a System DSN. This can be
    resolved by deleting the User DSN and creating a System DSN. Don't forget to
    delete the User DSN after creating the new System DSN (duplicate DSN names will
    produce a new ODBC error).
    -The Access file is locked because a lock file (.ldb) exists, even after new
    System DSN's have been created. The lock file may be due to a DSN of a
    different name accessing the database. Search in Windows Explorer or Find for
    *.ldb and delete the yourfilename.ldb file. If another DSN (user or System)
    exists, you may want to delete it. Be sure to reboot the machine after making
    these changes.

    It has been suggested that the Access db may have incorrect permissions but
    can't seem to change them from XP. Don't think this is the issue.

    I have set up the Database DSN & Binding and it even tests OK (connection
    made) but on the live server all I get is errors.

    Any help would be greatly appreciated as I am chewing through the furniture in
    frustration.

    Polite Elliot


    Polite Elliot Guest

  2. Similar Questions and Discussions

    1. Data Source Not Found Error
      When I upload my pages to my website, I get this error message: Data source SiteTest could not be found. The error occurred in...
    2. Error creating a new Data Source for Oracle connection
      I'm trying to create a new data source connection to our Oracle 10gR2 server using ColdFusion Administrator 6.1 Standard on a Windows 2003 server....
    3. data source could not be found error
      I just go a new computer and so far I have done the following: - activated IIS as part of XP Prof\ - installed Studio MX as well as the developer...
    4. Connection to data source error
      Hi, For the past week I am continually getting disconnected from my data source in cold fusion, and have to reconnect. But when I go to do that,...
    5. ERROR: Data source name not found... Please help...
      Did you create USER DSN? I bet you did. Recreate it as System DSN. USER DSNs exist only for specific user. So ASP account does not see them. ...
  3. #2

    Default Re: DB Connection Error: Data source name not found

    are you managing the remote server? i had a similar problem recently &
    despite i deleted & created several times the DSN through the Control
    Panel the error kept until the ISP tech support fixed something

    HTH,

    manuel

    Polite Elliot wrote:
    > Hei,
    >
    > I am using Dreamweaver MX 6.1, XP SP2 and trying to connect to a MS Access db.
    >
    > I can open & preview the page & data correctly using IIS and localhost.
    > However, on the remote server I keep getting:
    >
    > "Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    >
    > [Microsoft][ODBC Driver Manager] Data source name not found and no default
    > driver specified
    >
    > /Test.asp, line 5 "
    >
    > Line 5 reads: Recordset1.ActiveConnection = MM_WWCONNECT_STRING;
    >
    > I have tried:
    >
    > -Make sure a Data Source Name (DSN) has been created on both the web server
    > and on the local machine.
    > -The DSN may have been set up as a User DSN not a System DSN. This can be
    > resolved by deleting the User DSN and creating a System DSN. Don't forget to
    > delete the User DSN after creating the new System DSN (duplicate DSN names will
    > produce a new ODBC error).
    > -The Access file is locked because a lock file (.ldb) exists, even after new
    > System DSN's have been created. The lock file may be due to a DSN of a
    > different name accessing the database. Search in Windows Explorer or Find for
    > *.ldb and delete the yourfilename.ldb file. If another DSN (user or System)
    > exists, you may want to delete it. Be sure to reboot the machine after making
    > these changes.
    >
    > It has been suggested that the Access db may have incorrect permissions but
    > can't seem to change them from XP. Don't think this is the issue.
    >
    > I have set up the Database DSN & Binding and it even tests OK (connection
    > made) but on the live server all I get is errors.
    >
    > Any help would be greatly appreciated as I am chewing through the furniture in
    > frustration.
    >
    > Polite Elliot
    >
    >
    Manuel Socarras Guest

  4. #3

    Default Re: DB Connection Error: Data source name not found

    Got It!

    I used a custom connection string:

    "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/myfolder/mydatabase.mdb")

    Polite Elliot 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