|
-
Jul 1st, 2002, 05:53 PM
#1
Thread Starter
New Member
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
-
Jul 1st, 2002, 06:29 PM
#2
Frenzied Member
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.
-
Jul 15th, 2002, 03:04 PM
#3
Thread Starter
New Member
Do you have any examples.....Thanks in advance
-
Jul 15th, 2002, 03:20 PM
#4
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|