Import text file into database table

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Import text file into database table

    I need to build a web page that allows the user to select a text file
    and click a button to import the file into a database table. Does
    anyone have any code that shows how to read a text file line by line
    and save that data into an ODBC database (not SQL Server)? The text
    file is not delimited in any way so we will have to parse the data.
    Right now, I am mostly concerned with storing the data. The data will
    be stored in an Oracle table so we will be using ADO with our ASP
    code.

    Thanks for any help.
    Marty
    Marty Guest

  2. Similar Questions and Discussions

    1. Import a CSV text file into SQL Server database andupdate it.
      :confused; Hi Guys and Gals, I need to update a SQl Server database from a CSV text file . This must happens everytime. Someone dumps CVS text...
    2. import Text file in MySQL table
      I've a text file I've downloaded wich contains the datas I must use to fill a table. (postal code and cities). Here is the structure of my text...
    3. import a text file to database
      Hi, I am still stick on the text file being imported to database. Can anybody help? I have just done the csv format files. And then I work on...
    4. Import MYSQL table information from .sql file
      If I have created a .sql file in my notepad named tables.sql and laved it in my inetpub folder what commands do I have to enter at the mySQL command...
    5. Splitting text from a database table
      I have some text which I have extracted from a database table, this contains embedded CR/LF pairs, i.e. \r\n. I would like to split the text into...
  3. #2

    Default Re: Import text file into database table

    You'll need to upload and read the data. I'd upload it, give it a unique
    name and save it temporarily in the file system.
    I'd then use fso to read the contents of the file
    [url]http://msdn.microsoft.com/library/en-us/script56/html/sgWorkingWithFiles.asp?frame=true[/url]
    [url]http://tinyurl.com/skpm[/url]

    "Marty" <johnmark1515@yahoo.com> wrote in message
    news:93e46033.0310270646.6ae7cd5@posting.google.co m...
    > I need to build a web page that allows the user to select a text file
    > and click a button to import the file into a database table. Does
    > anyone have any code that shows how to read a text file line by line
    > and save that data into an ODBC database (not SQL Server)? The text
    > file is not delimited in any way so we will have to parse the data.
    > Right now, I am mostly concerned with storing the data. The data will
    > be stored in an Oracle table so we will be using ADO with our ASP
    > code.
    >
    > Thanks for any help.
    > Marty

    TomB 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