Database access error. Please help!

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

  1. #1

    Default Database access error. Please help!

    I finially manages to get my Access database to connect with Coldfusion,
    however when i run a simple 'Select * from [table]' statement, i get this error.

    [MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access
    Driver] The Microsoft Jet database engine could not find the object
    'TAB_SECURE'. Make sure the object exists and that you spell its name and the
    path name correctly.

    The Error Occurred in F:\CFusionMX\wwwroot\BaccSys_source\TopBanner.cfm: line
    58

    55: <cfquery name="getTabs" datasource="access">
    56 : select *
    57 : from TAB_MENU
    58 : </cfquery>
    59 :
    60 : <cfoutput query="getTabs">#getTabs.tab_text#</cfoutput>

    the object that it can't 'find' always seems to be the last column in the
    table.

    Does anyone know how i can fix this. Any help apperiected!

    Thanks!


    Grynch Guest

  2. Similar Questions and Discussions

    1. Access database error
      I'm trying to add an Access data source in coldfusion following step for step a guide from lynda.com. When I try to submit, this is what I get: ...
    2. Insert to Access database error*** Please Help
      When trying to insert into access database with a form created by the standard MX2004 Insert and form wizard, get the "Syntax " error as below. Line...
    3. Error reading from Access Database
      Hi Folks Actually I am new to ASP, I will be thankful so much if anyone could help I have an Access2000 Database, I have Listing.html that has...
    4. Error while trying to connect to Access database within ASP
      I am getting an error message while trying to connect to an Access database within ASP. This error only occurs on my notebook computer and not on my...
    5. Error connecting to Access database
      Created new page, selected dynamic page and ASP VBscript from dynamic page list. In defining custome connection string, in connection string field,...
  3. #2

    Default Re: Database access error. Please help!

    Hi

    you are saying that it could find the last column in the table but as you
    have in that there is word 'TAB_SECURE'.

    can you confirm that you are getting connected to that MS-Access table and
    try display the table records count.
    then later try display if it is k.

    vkunirs Guest

  4. #3

    Default Re: Database access error. Please help!

    Hi

    It must be connected to the database ok, because it is displaying the error
    about a column name in a table. It also says that the connection is 'ok' when i
    verify it using coldfusion administrator.

    Any other ideas what could be causing this?

    Thanks.

    Grynch Guest

  5. #4

    Default Re: Database access error. Please help!

    Is your datasource name correct? Access is a little strange for a DSN
    Knum Guest

  6. #5

    Default Re: Database access error. Please help!

    Knum,

    do you mean inside the cfquery tag?

    If so, yes, it's is correct.

    I have also tried renaming the DSN (does that mean datasource name by the way?!) but i still get the same error.
    Grynch Guest

  7. #6

    Default Re: Database access error. Please help!

    Hi

    when we write the query as "select * from table"...it has to give all the
    fields which are there in the table.
    i am not understanding why you are getting this error.
    even though your retreving all the fields.

    now try to give the other table name then try it, with the same DSN.


    vkunirs Guest

  8. #7

    Default Re: Database access error. Please help!

    just a dumb ? but is your database named 'access'? could cause a conflict... if not, the datasource is the name of the database as registered in cf admin and ODBC.
    ranger 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