Need Utility to insert a CSV to ACCESS Table

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

  1. #1

    Default Need Utility to insert a CSV to ACCESS Table

    Hi Guys, first of all thanks for your help. Can someone please help me find a
    ColdFusion component or custom tag which will allow me to import a CSV file
    into one of my tables. Does anyone have a script like this? If you don't have
    a script then perhaps a premade utility which might work. I have looked at a
    couple of things none of which seem to work. I bought the MX Collection
    utility but I could never get it running properly.

    murpg Guest

  2. Similar Questions and Discussions

    1. Insert table - ASP and access database
      Hi, I am working towards trying to insert data in to two tables from one form. My code won't work so I have simplified everything. I...
    2. How Do you insert a table in Previous Table
      How Do you insert a table in Previous Table that has an image, in a web page
    3. Login - multi table insert for registrant; subsquent login insert page requests into joined 'Selection' Table
      Question regards insert and updates in sql server for a simple login script that requires registration the first time and only "email address" upon...
    4. windows backup utility - Access files
      Hi All! I have a windows 2000 server (with all service packs + windows update), and on it there is an Access database, accessed by book-keeping...
    5. Command line utility for Oracle 8i/9i table creation on Solaris.[like osql.exe for MSSQL]
      It's called sqlplus, and it's a command line tool. Regards HJR "Gijo Varghese" <gijovarghese@yahoo.com> wrote in message...
  3. #2

    Default Re: Need Utility to insert a CSV to ACCESS Table

    Is this a one time or recurring import? Is the file format fixed or do you need to import files with many different formats? Have you tried using CFQUERY with a schema file?

    mxstu Guest

  4. #3

    Default Re: Need Utility to insert a CSV to ACCESS Table

    This import will happen quite a bit. The field names will always stay the same. I am not familiar with the using of the CFQUERY with a schema file. Can you please show me what you had in mind?
    murpg Guest

  5. #4

    Default Re: Need Utility to insert a CSV to ACCESS Table

    have you seen [url]http://www.cflib.org/udf.cfm?ID=1236?[/url] are the csv files big? that could be a problem.
    PaulH Guest

  6. #5

    Default Re: Need Utility to insert a CSV to ACCESS Table

    You create a schema.ini file that the Access driver will use to interpret the
    format of CSV file. Place the schema file in the same directory as the CSV
    file. You can then use a regular cfquery to insert the data from the table.
    Something like this

    <cfquery name="insertData" datasource="myAccessDSN">
    INSERT INTO myDestinationTable(FirstName,LastName,Address)
    SELECT FirstName,LastName,Address
    FROM [TEXT;DATABASE=c:\myCSVDirectory;].myAddresses.csv;
    </cfquery>



    mxstu Guest

  7. #6

    Default Re: Need Utility to insert a CSV to ACCESS Table

    I haven't used schema files in a while, but they should be able to handle a
    moderate amount of data pretty well. I've used it with 20K rows in the past.

    Here are a few links on schema files:

    [url]http://www.devx.com/tips/Tip/12566[/url]

    mxstu Guest

  8. #7

    Default Re: Need Utility to insert a CSV to ACCESS Table

    while i'm no big fan of access, that's a slick trick. thanks for teh tip.

    PaulH Guest

  9. #8

    Default Re: Need Utility to insert a CSV to ACCESS Table

    No problem. I'm not a fan either, but I had to use it one project and the schema file was a real life saver.
    mxstu 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