ODBC Error Code = S0002 (Base table not found)

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default ODBC Error Code = S0002 (Base table not found)

    I just deployed my first CF application. The ISP has set up the DSN. But now,
    when I run the application, I get the following error:

    ODBC Error Code = S0002 (Base table not found)

    This error occurs when I try to access either of the two tables in the DB. It
    looks like the datasource is pointing to the wrong DB (not mine). Or maybe the
    DB file is corrupted? What else could this be?

    Glen T Guest

  2. Similar Questions and Discussions

    1. Multiple Managed Servers and same code base
      I have 2 weblogic 8.1 SP4 managed app servers, sitting on one physical machine, pointing to the same code base (CF in general but I am using CF6 as...
    2. ColdFusion MX ODBC Server cannot be found
      Has anyone solved this yet?
    3. ODBC Error Code = 23000 (Integrity constraint violation)
      Hi, I have been trying to fix this problem for 3 hours, but still no progress. The error is like this: ODBC Error Code = 23000 (Integrity...
    4. ODBC Error - TSN Service name not found
      Hi, I have a peculiar problem. Our 4 sites are running on Win 2000 / Oracle ( ASP Pages) . 4 different user name and password in oracle .I...
    5. Microsoft Cursor Engine - Insufficient base table information for updating or refreshing.
      Hi, Since my db upgrade from SQL 7 to SQL 2000, one of my MTS objects fails with the error: "0x80004005 Microsoft Cursor Engine - Insufficient...
  3. #2

    Default Re: ODBC Error Code = S0002 (Base table not found)

    What are they pointing the DSN to? Did you create the tables inside the db?
    NicTunney Guest

  4. #3

    Default Re: ODBC Error Code = S0002 (Base table not found)

    Try doing a query to get all the objects in the database to check what tables
    are in the database that the datasource is pointing to. The attached query
    should work for an MS SQL Server database

    Could also be that your user account for the database hasn't got permission
    for those tables.

    HTH

    <CFQUERY NAME="getAllTables" DATASOURCE="??">
    SELECT *
    FROM SysObjects
    WHERE Type = 'u'
    ORDER BY Name
    </CFQUERY>

    <CFDUMP VAR="#getAllTables#">

    zoeski80 Guest

  5. #4

    Default Re: ODBC Error Code = S0002 (Base table not found)

    At this moment, the ISP is claiming that the DB that I uploaded to the server
    has a table named "users" in it. However, the table is named "tbl_users" on my
    machine.

    I'll try the listing code and see what I get.

    Glen T Guest

  6. #5

    Default Re: ODBC Error Code = S0002 (Base table not found)

    Thanks, zoeski80, that did the trick. Using your dump, we are able to figure
    out that the dsn was actually pointing to another database of the same name in
    a folder of the same located above web root - left over from the pevious admin.
    So it was pointing to the wrong DB. Thanks a bunch!

    Glen T 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