Data Source Not Found

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Data Source Not Found

    I'm drawing a blank on this...hope someone can help. I'm quite accustomed to
    working on local CF & dB servers, but now have my personal site on a remotely
    hosted site and am COMPLETELY bamboozled.

    I'm getting the following error message: "Error Executing Database Query. Data
    source not found."

    Hosting company (big name, well known) has MS Access dB auto-config utility.
    Database is loaded, DSN is set, admin tools see the datasource, everything
    should be working as far as they're concerned.

    =============

    MS Access Database details
    Username: foouser (required)
    Password: foopass (required)
    Data Source Name (DSN): fooaccess
    Database Filename: foo.mdb

    =============

    Application.cfm
    <cfset gDB = "fooaccess">

    =============

    AnyPage.cfm

    <cfquery name="qGetFoo" datasource="#gDB#">
    SELECT * FROM footable ORDERBY fooID
    </cfquery>

    -- OR --

    <cfquery name="qGetFoo" datasource="#gDB#" username="foouser"
    password="foopass">
    SELECT * FROM fooTable ORDERBY fooID
    </cfquery>

    -- OR --

    <cfquery name="qGetFoo" datasource="fooaccess" username="foouser"
    password="foopass">
    SELECT * FROM fooTable ORDERBY fooID
    </cfquery>

    -- OR --

    <cfquery name="qGetFoo" datasource="fooaccess">
    SELECT * FROM fooTable ORDERBY fooID
    </cfquery>

    =============

    What am I doing wrong?!

    Thanks!


    SpunkyVulcan 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. 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...
    3. Data Source Not Found... on some machines
      :confused; I use the following code to reference my datasources inside of my CFQUERY tags: 'DATASOURCE='#Request.dsn#''. I set the Request variable...
    4. 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...
    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: Data Source Not Found

    What kind of server is it running on?
    Have you verified the db is setup within CF, if you don't have direct access to the CF administrator page, then have their support people verify it for you.
    shmuckatelli Guest

  4. #3

    Default Re: Data Source Not Found

    Hi

    Is the DSN is created in the ODBC or in the CF Administrator.
    may be check that, whether the DSN is created in CF admin or not?
    i think the DSN has to be created in the CF admin only.
    vkunirs 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