fox pro DSN not working with CF 7

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

  1. #1

    Default fox pro DSN not working with CF 7

    I am trying to access a foxpro 5 database in order to migrate its data into sql
    server 2000 usign coldfusion.

    i created a system DSN on the CF server pointing to the folder containing all
    the dbf files and then created a CF DSN (ODBC) using the system DSN. the CF
    DSN verifies and seems ok.

    but then i created a template with the followign query:
    <cfquery name="foxlogs" datasource="foxLogs_inpat">
    select *
    FROM zipcode.DBF
    </cfquery>

    and when i run it i get the followign error:
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Visual FoxPro
    Driver]File 'zipcode.dbf' does not exist.

    but i know that zipcode.dbf DEFINITELY does exist.

    what can i do to make this work?

    dwd1 Guest

  2. Similar Questions and Discussions

    1. #38816 [Opn]: PHP code that was working perfectly recently stopped working.
      ID: 38816 User updated by: mtoohee at gmail dot com -Summary: PHP code that was working perfectly recently stopped....
    2. Macromedia Flash Player installed and working properly suddenlys stops working..
      No idea what has caused the Flash player to stop working. This is not my machine but a relatives who has asked for help over the T'giving...
    3. div tag not working
      hey guys, im having a little problem with my div tags in dreamweaver 8 ive got 4 div tags for a banner, links content and footer and each of them...
    4. Data not working on Label but is working in Datagrid
      I am creating a simple website in Flex. I want to show different content from the database for home, about us, contact us, etc. I am using a CFC as...
    5. Working TableStyle Not Working on a Second DataGrid
      I am having difficulty getting Tablestyles to work on a datagrid. I have 2 datasets, 1 filled and the other not. The first contains customer, stock...
  3. #2

    Default Re: fox pro DSN not working with CF 7

    Why don't you just write a DTS package in SQL 2K? Using CF for this adds an
    unnecessary layer of complexity.

    That said, is your system DSN free-table? I believe the VFP driver defaults
    to DBC-style.

    philh Guest

  4. #3

    Default Re: fox pro DSN not working with CF 7

    hey thanks for the reply. yeah i thought of DTS shortly after i posted this
    and have since been workign on using DTS. but there will still be a need in
    the future to access foxpro dbf files directly. my system DSN is set to free
    table.

    dwd1 Guest

  5. #4

    Default Re: fox pro DSN not working with CF 7

    If your DSN is truly pointing to a free table directory.
    Then ensure that the ZipCode.dbf is included in the directory.

    The cfquery should look like:

    <cfquery name="foxlogs" datasource="foxlogs_inpat" dbtype="ODBC">
    select * from zipcode
    </cfquery>

    Let me know if adding the ODBC and removing the .dbf does the trick.

    BretHobbs Guest

  6. #5

    Default Re: fox pro DSN not working with CF 7

    I am having a similar problem when trying to view a page with a query to a
    FoxPro Database (in this case it is a VFP8 DB.

    I changed my query to your suggested format:
    <cfquery name="ViewError" datasource="Foxy" dbtype="ODBC">
    Select * from apps
    </cfquery>
    The table apps is definitely there and viewable but not currently in use.

    The ColdFusion Connection updates without a problem though it requires a
    username to be passed.

    I receive the same message:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Visual FoxPro
    Driver]Not a table.

    Other information from the debug is:
    SQL Select * from apps
    DATASOURCE Foxy
    VENDORERRORCODE 123
    SQLSTATE 42S02







    MickBW Guest

  7. #6

    Default Re: fox pro DSN not working with CF 7

    Was anyone able to figure out a fix for this? I'm having the same problem with
    Foxpro 2.6. I tried the dbtype="ODBC", but didn't help. I'm using free table
    directory to access the tables. The same code works fine in Coldfusion 6.

    Info from error:
    VENDORERRORCODE 173
    SQLSTATE 42S02


    mike42780 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