Results 1 to 4 of 4

Thread: text file database import to SQL

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    3

    text file database import to SQL

    I would like to know how to:

    1.) import from a text file to an existing SQL database table using ADO.

    2.) delete the text file after import. The text file is moved and renamed with a date and time stamp to a history folder.

    3.)If an error occurs during the import then the file is moved and renamed with a date and time stamp to an error folder instead of the history folder.

    Thanks for your help

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    1) Declare a file system object, open it, read each record and parse the data into fields. Then update your database/table either with SQL or by controls.
    2) Close the object from step 1, .copy it, .delete it.
    3) same as 2.
    Last edited by JHausmann; Jul 1st, 2002 at 06:42 PM.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    3
    Do you have any examples.....Thanks in advance

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    3
    Do you have any examples.....Thanks in advance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width